Creating a new variable in a loop automatically. Please help!
Show older comments
I need to create a new variable every time the loop occurs. I am pretty new to matlab please help!
I need the variable to change automatically each time the conditions are met and the variable is stored. (Yaxisvarible1, Yaxisvariable2, and so on). Thanks in advance.
Accepted Answer
More Answers (1)
Azzi Abdelmalek
on 19 Apr 2014
0 votes
This is not a good idea http://matlab.wikia.com/wiki/FAQ#How_can_I_create_variables_A1.2C_A2.2C....2CA10_in_a_loop.3F
Categories
Find more on Loops and Conditional Statements 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!