Warning Control Character '\S' is not valid when concatinating two strings
<p>I have two variables such as:</p>

<pre><code>path='data\voc11\SegmentationClassExt\%s.png'
name='123'
</code></pre>

<p>I want to concatenate two strings into one like so:</p>

<pre><code>data\voc11\SegmentationClassExt\123.png
</code></pre>

<p>I used the code below:</p>

<pre><code>sprintf(path, name)
</code></pre>

<p>However I receive the following error:</p>

<blockquote>
  <p>Warning: Control Character <code>'\S'</code> is not valid. See 'doc <code>sprintf</code>' for control characters valid in the format string. </p>
</blockquote>

<pre><code>ans =

dataoc11
</code></pre>

<p>I am using MATLAB on Windows. Could you give me any solution for that. I tried to change  <code>path='data\\voc11\\SegmentationClassExt\\%s.png'</code> and when I did that, the above code will work. However, the current data is </p>

<pre><code>path='data\voc11\SegmentationClassExt\%s.png';
</code></pre>