can i give variable different names then call this name
Show older comments
hi guys
please I have question in displaying a name in matlab. I am using 5 cases each one has its won properties. after finishing the calculation I want to display the material name with the output data. is there any way to give a variable the name of material in every case so I can call it in the display or fprintf function.
Best regards
Accepted Answer
More Answers (2)
Azzi Abdelmalek
on 29 Nov 2012
You can also generate names depending on your counter
for k=1:3
name{k}=sprintf('name%d',k)
end
1 Comment
Abdulaziz
on 29 Nov 2012
Walter Roberson
on 29 Nov 2012
1 vote
1 Comment
Abdulaziz
on 29 Nov 2012
Categories
Find more on Just for fun in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!