FOR loops in MATLAB: Using loops for plotting
Вставка
- Опубліковано 5 жов 2024
- This screencast gives three quick examples of using FOR loops to perform some common plotting tasks. First we see how to quickly plot several columns of data from the same data set on a single set of axes. Then, we use a FOR loop to create a subplot. Finally, a FOR loop is used to sample from a data set and plot the points as markers.
Had the problem with only the last plot() of the loop being done. Your video helped me, thanks!
This was extremely helpful. Thanks for the upload.
Thank you so much, this was exactly what I was looking for!
Excellent work, sir. Thank You.
Very nice and detailed tutorial, thank you!
thank you very much! I have to turn in my homework today.
oh man, you saved my time. Thanks a lot.
Very good and helpful. Thank you!
You sound like Patrick Bateman from American Psycho. Helpful tutorial too
informative vedio. Thank You. Could you please explain how to give the legends when we plot graphs using for loop
Excellent, i did not complete the video, however, I solve my problem.
Thanks
Thank you - *exactly* what I was looking for!
Very useful thank you.
adding titles to that plots will give good impression, can u do that?
Thank you!!
How do you add a legend inside a FOR LOOP? For example, in the plots,you created in the first two examples.
Thanks
for i=1:length(B)
plot(B{i}(:,2),B{i}(:,1), 'y' ,'linewidth',1.45);
Please explain this in image processing for brain detection
very helpful
Thank you so much for this video ..it solved my problem :)
but i have one doubt..i plotted a fourth degree polynomial. I attempted to curve fit a 4th degree curve through my data points using 'basic fitting' option ..but i am getting an error message :
'Polynomial is not unique; degree>=number of data points'
please help me out :(
thanks dor your vedio,may i know how to add legend to each line after 3 loops ?
thanks a lot...
Genius
I want to drw each lines repeated in plot with diff colors and markers , also the legends. Help me.
Can anyone help me to find out how i can give distinct line styles and colours to each plot that is drawn in the for loop in the first plot drawn in this video..? Thank you.
Sir, Please plot plank radiation law
Hi, can anyone tell me how to add a legend to a plot where the legend refers to the markers rather than to the linestyle?
I have a plot with 5 curves and 5 sets of distinct style markers made with a nested FOR loop (with the method shown in video).
I would like the legend to denote the plots by the marker styles rather than by the curve line styles. However, I'm not aware of any way to do so.
Is this Seth Rogen speaking?
wut
I still have some problems. I have a normal plot in 2D which works if i cut the for loop away, the for loop comes after it. If I then paste the for loop back it only shows the figure inside the for loop and not anymore the plot before the for loop, only the figure inside the loop. Does anyone know how to solve this?
Mac looks gross
Thanks! Very good tutorial!