Labeling Plots inside Function
1 回表示 (過去 30 日間)
古いコメントを表示
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 件のコメント
採用された回答
the cyclist
2011 年 7 月 28 日
I would try putting the labeling commands after the plotting command.
1 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Axis Labels についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!