how to plot a continuous graph in a loop
Ältere Kommentare anzeigen
for k=1:10;
x=5;
y=2*x-5*k*k*k
plot(k,y,'*');
hold on;
end
This program gives me a dotted graph.
however I wanted to get a regular(continuous) graph.
Please help me to find suitable command for that.
Akzeptierte Antwort
Weitere Antworten (1)
Morteza Hajitabar Firuzjaei
am 29 Jan. 2018
0 Stimmen
you can make your vectors and plot your graph, like:
s = [1 1 1 1];
t = [2 4 5 3];
G = graph(s,t);
plot(G);
Mortrza Hajitabar Firuzjaei
1 Kommentar
Sukhversha Luthra
am 30 Jan. 2018
Kategorien
Mehr zu Graph and Network Algorithms finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
