Make 1 figure with 2 plots in 1 row. First plot will be empty, and second plot will contain bar plot of all values of i from one of the above loops.

subplot(1,2,1);
subplot(1,2,2);
bar(i)
but howto add additional variable v which will 'remember' values of i from each iteration.

2 Kommentare

You really need to provide more details in your questions. You need to provide more than 3 lines of code, NONE of which contain any usable data/info.
no its woking fine for me and i just need to know how to add the v so

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu 2-D and 3-D Plots finden Sie in Hilfe-Center und File Exchange

Tags

Gefragt:

am 7 Okt. 2019

Kommentiert:

am 7 Okt. 2019

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by