poster
2019-11-26, 17:22
<p>I have a .m file in matlab which run perfectly. Inside I ask the user to define the path of a file <code>uigetdir()</code>, then I compute some .txt file with an algorithm. Then, I write the result inside a csv file. </p>
<p>Now, I have implemented this code inside App Designer to make a standalone application. Everything works perfectly exept that I got <code>Undefined function or variable</code>. </p>
<p>Here is a part of the code : </p>
<pre><code> Force_max=mean(F_Max_i);
Force_max_txt=string(Force_max);
</code></pre>
<p>where F_Max_i is a 1x4 Matrix of double. </p>
<p>Those 2 lignes works correctly but later on the code I do : </p>
<pre><code>Bilan_Force=["Mean";Force_max_txt];
</code></pre>
<p>And I got an error <code>Undefined function or variable Force_max_txt</code> which looks very strange to me. </p>
<p>Thank you </p>
More answer... (https://stackoverflow.com/questions/59047527/undefined-function-or-variable-in-matlab-app-designer)
<p>Now, I have implemented this code inside App Designer to make a standalone application. Everything works perfectly exept that I got <code>Undefined function or variable</code>. </p>
<p>Here is a part of the code : </p>
<pre><code> Force_max=mean(F_Max_i);
Force_max_txt=string(Force_max);
</code></pre>
<p>where F_Max_i is a 1x4 Matrix of double. </p>
<p>Those 2 lignes works correctly but later on the code I do : </p>
<pre><code>Bilan_Force=["Mean";Force_max_txt];
</code></pre>
<p>And I got an error <code>Undefined function or variable Force_max_txt</code> which looks very strange to me. </p>
<p>Thank you </p>
More answer... (https://stackoverflow.com/questions/59047527/undefined-function-or-variable-in-matlab-app-designer)