a function that draws a plot: use a variable name for a legend
Ältere Kommentare anzeigen
I have a data for
days
temperature
I want to write a function that plot(x,y) that, when one inputs plot(days,temperature), that outputs
plot(days, temperature)
legend('days','temperature')
So I start with
function plottest(x,y)
plot(x,y)
end
Now how should I write
legend
?
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Legend 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!