MATLAB: Making loop that defines variables loopvariable how to make a loop that would output variables and result the following: code example: for i=1:x y'i'= 2*i end output example: y1=2 y2=4 y3=6 y4=8 ……etc.. where y1 to y10 are all variables created and defined by the loop itself. Best Answer http://matlab.wikia.com/wiki/FAQ#How_can_I_create_variables_A1.2C_A2.2C....2CA10_in_a_loop.3F Related SolutionsMATLAB: For loop to declare syms variables http://matlab.wikia.com/wiki/FAQ#How_can_I_create_variables_A1.2C_A2.2C....2CA10_in_a_loop.3F MATLAB: How to define different matrix name in a loop http://matlab.wikia.com/wiki/FAQ#How_can_I_create_variables_A1.2C_A2.2C....2CA10_in_a_loop.3F Related QuestionCreating variables with a loopDefining VariablesVariable nameDefine a series of matricesHow to assign the solution of SVD to different variablesMaking a substitution
Best Answer