Why isn't ezplot holding on?
5 ビュー (過去 30 日間)
古いコメントを表示
% settings for figure and axis
figuraT1 = figure('Name',title,'Position', get(0,'Screensize'));
maxfig(figuraT1,1);
assiT1 = axes('Parent', figuraT1);
dim=length(fsymarr);
for i=1:dim
ezplot(fsymarr(i),[min,max],figuraT1)
hold on
end
grid on
set(assiT1, 'LineWidth',1.5);
set(assiT1,'FontSize',14,'FontWeight','bold','FontAngle','Italic');
ylabel('Y Values');
xlabel('X Values');
Why does the function ezplot plot only the last function in the array fsymarr?
4 件のコメント
Walter Roberson
2013 年 4 月 23 日
What does
class(fsymarr)
show ? I need to know in order to tell you the correct solution.
Also I will need to know your MATLAB version number.
採用された回答
Walter Roberson
2013 年 4 月 24 日
編集済み: Walter Roberson
2020 年 9 月 4 日
The only thing I see at the moment is that ezplot() automatically adjusts the plot limits in ways such that the results of the earlier plot might only be partly visible (or out of range completely.)
Try changing to "hold on" instead of "hold all" -- but note that if you do that then the limits established first will be used, possibly leaving other plots mostly out of window.
2 件のコメント
Ricardo Ortega Bolaños
2020 年 9 月 4 日
Hello Alessio Nava, I have the same problems with "hold on" and "ezplot", the axes change and the graph does not come out well. Could you give me some indication about your code, I would really appreciate it. Thank you.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Surface and Mesh Plots についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!