Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: Problem in matlab code
Replies: 1   Last Post: May 8, 2013 11:49 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
sanjeev mishra

Posts: 1
Registered: 5/7/13
Problem in matlab code
Posted: May 7, 2013 2:02 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

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



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.