Plotting graph using M-file.
15 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I want to plot graph of x Vs y. So when i do below steps its showing me error as Too many input arguments. So please let me know if you have any idea about this.
for i = 1:10:100
y=i+2;
t=y^2+4;
x(i) = (2*t-1);
k(i)=y+1;
end
plot (x(i),y(i))
I
4 Kommentare
kash
am 1 Mär. 2013
the reason i sthe value x has more values than y ,y has single value,use plot inside loop
Akzeptierte Antwort
Weitere Antworten (1)
ChristianW
am 1 Mär. 2013
k = 0;
for m = 1:10:100
k = k+1;
y(k)=m+2;
t=y(k)^2+4;
x(k) = (2*t-1);
end
plot(x,y)
3 Kommentare
Siehe auch
Kategorien
Mehr zu Function Creation finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!