I have MatlabR2019b and I am trying to do a simple plot. I am not able to plot anything unless I use scatter(x,y) or area(x,y). How could I get plot(x,y) to work? I am using a Mac.
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Lyndsey Boulden
am 14 Dez. 2019
Kommentiert: Lyndsey Boulden
am 14 Dez. 2019
I have MatlabR2019b and I am trying to do a simple plot. I am not able to plot anything unless I use scatter(x,y) or area(x,y). How could I get plot(x,y) to work? Is there some tool/addon missing? I am using a Macbook Pro with Mojave 10.14.6.
x = linspace(0,2*pi,50);
y = sin(x);
plot(x,y)
hold on
y2 = cos(x);
plot(x,y2)
hold off
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 14 Dez. 2019
You need to rename plot.m in the untitled folder directory as it is overriding the Mathworks plot call
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu 2-D and 3-D Plots 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!