Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
NCTM or The Math Forum.
|
|
|
Problem in matlab code
Posted:
May 7, 2013 2:02 PM
|
|
Hi all,
I have a problem.. I want to use the values of my workspace file in my code
Like i have some values in my workspace file results482.Result_optKnock.knockedV , results483.Result_optKnock.knockedV, results484.Result_optKnock.knockedV, .....
I want enter it in my code as
a=0; for i=482:500 z=num2str(i); a=a+1; name{a}=strcat('results',z); x{a}=strcat(name{a},'.Result_optKnock.knockedV'); end
but i have problem...i am getting x{a} as results482.Result_optKnock.knockedV and actually i want to enter the value of results482.Result_optKnock.knockedV from matlab workspace.
Please give me suggestions Thanks Sanjeev
|
|
|
|