Creating an empty figure
18 ビュー (過去 30 日間)
古いコメントを表示
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1620058/image.png)
I am having trouble creating a blank figure.
This is the code I currently have
tf = isempty(names);
if tf == 1
plot()
elseif opt <1 | opt > 3
plot()
disp("Invalid opt value, it must be either 1, 2, or 3")
0 件のコメント
回答 (1 件)
VBBV
2024 年 2 月 18 日
tf = isempty(names);
if tf == 1
figure % to generate empty plot
elseif opt <1 | opt > 3
figure
disp("Invalid opt value, it must be either 1, 2, or 3")
end
1 件のコメント
参考
カテゴリ
Help Center および File Exchange で Annotations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!