plot doesn't work
14 ビュー (過去 30 日間)
古いコメントを表示
The function plot doesn't work anymore, i tried to use the commands 'close all' and figure() before running my code but it doesn't show anything. For example,
clc, clear, close all
x=[1,2,3,4];
y=[2,3,2,1];
figure()
plot(x,y,'b-')
the plot comes out without a figure and it's gray.
Does someone know how to fix this?
Thanks in advance
0 件のコメント
回答 (1 件)
Image Analyst
2022 年 4 月 29 日
Works fine for me in r2022a and in MATLAB online:
clc, clear, close all
x=[1,2,3,4];
y=[2,3,2,1];
figure()
plot(x,y,'b-')
What appearance are you looking for exactly?
You don't have an m-file called plot.m do you? What does this show:
which -all plot
参考
カテゴリ
Help Center および File Exchange で Graphics Performance についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
