FOR Loops for genearting multiple plots and using only one Column of Data from Each Table (Multiple Tables Present)
Hello,
I have a Cell Variable named Complete_Table. Which has multiple Tables within it (3 in the example shown in attached images). I would like to make plots using FOR Loop where in I can Only use the the Third Column of Each Table under Complete Table aganist a Static X-Axis with ("LG","MG","CG") as names No Data in General. In Simple Words the X-Axis doesn’t change so that is not a Issue. In my Loop the Script I have added below I am not able to dynamically index for the Y-Data to Change from First Table (Var1_3) to Second Table (Var2_3) to Third_Table(Var3_3) and So on.
Also The Variable names here are seem same but are different. Like Var1_3 is associated with First Table and Var2_3 is associated with Second table.
for op = 1:length(Complete_table) % Helps us learn the number of tables present in the Cell.
figure;% Produces the Same number of figurs as number of Tables or varable op.
Y_Data = Complete_Data(op()); % here it When op =1 it is looking at the first table but not sure how to proceed for it to look at Var1_3 and so on & so forth.
plot()
end
Any suggestion in the right direction would be great.
Thank you for your time and effort..Hello,
I have a Cell Variable named Complete_Table. Which has multiple Tables within it (3 in the example shown in attached images). I would like to make plots using FOR Loop where in I can Only use the the Third Column of Each Table under Complete Table aganist a Static X-Axis with ("LG","MG","CG") as names No Data in General. In Simple Words the X-Axis doesn’t change so that is not a Issue. In my Loop the Script I have added below I am not able to dynamically index for the Y-Data to Change from First Table (Var1_3) to Second Table (Var2_3) to Third_Table(Var3_3) and So on.
Also The Variable names here are seem same but are different. Like Var1_3 is associated with First Table and Var2_3 is associated with Second table.
for op = 1:length(Complete_table) % Helps us learn the number of tables present in the Cell.
figure;% Produces the Same number of figurs as number of Tables or varable op.
Y_Data = Complete_Data(op()); % here it When op =1 it is looking at the first table but not sure how to proceed for it to look at Var1_3 and so on & so forth.
plot()
end
Any suggestion in the right direction would be great.
Thank you for your time and effort.. Hello,
I have a Cell Variable named Complete_Table. Which has multiple Tables within it (3 in the example shown in attached images). I would like to make plots using FOR Loop where in I can Only use the the Third Column of Each Table under Complete Table aganist a Static X-Axis with ("LG","MG","CG") as names No Data in General. In Simple Words the X-Axis doesn’t change so that is not a Issue. In my Loop the Script I have added below I am not able to dynamically index for the Y-Data to Change from First Table (Var1_3) to Second Table (Var2_3) to Third_Table(Var3_3) and So on.
Also The Variable names here are seem same but are different. Like Var1_3 is associated with First Table and Var2_3 is associated with Second table.
for op = 1:length(Complete_table) % Helps us learn the number of tables present in the Cell.
figure;% Produces the Same number of figurs as number of Tables or varable op.
Y_Data = Complete_Data(op()); % here it When op =1 it is looking at the first table but not sure how to proceed for it to look at Var1_3 and so on & so forth.
plot()
end
Any suggestion in the right direction would be great.
Thank you for your time and effort.. for loop, plotting MATLAB Answers — New Questions