Labeling Plots inside Function
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
I have a function that creates a plot, but when I call it in my main script, I don't get any labels. Is there a way I can assign the labels within the function (without doing it in the main script)?
function [] = myplot(data)
xlabel('x');
ylabel('y');
title('title');
plot(data);
0 Commenti
Risposta accettata
the cyclist
il 28 Lug 2011
I would try putting the labeling commands after the plotting command.
1 Commento
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Axis Labels in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!