フィルターのクリア

how to plot graph in gui?

3 ビュー (過去 30 日間)
ramesha
ramesha 2014 年 4 月 14 日
回答済み: Joseph Cheng 2014 年 4 月 14 日
Dear users.... I have a program like this.
function exgui
fh = figure( 'units','pixels',... 'position',[50 ,50 , 600, 500]);
X=[2 4 7] Y=[4 6 8] h=plot(X,Y,'--r','LineWidth',1) ;
end
But above program excute in matlab R2013 ,, it shows error like' the expression to the left of the equals sign is not a valid target for an assignment' .

採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2014 年 4 月 14 日
X=[2 4 7]
Y=[4 6 8]
h=plot(X,Y,'--r','LineWidth',1)

その他の回答 (1 件)

Joseph Cheng
Joseph Cheng 2014 年 4 月 14 日
In your line
X=[2 4 7] Y=[4 6 8] h=plot(X,Y,'--r','LineWidth',1) ;
it is trying to set everything after the X= to X. you'll need a semicolon, or put each onto their own line.

カテゴリ

Help Center および File ExchangeDirected Graphs についてさらに検索

タグ

タグが未入力です。

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by