採用された回答

madhan ravi
madhan ravi 2018 年 12 月 6 日
編集済み: madhan ravi 2018 年 12 月 6 日

1 投票

x=0:1:pi;
a=@(x) sin(pi*x);
y=@(x) cos(4*pi*x);
ezplot(a,[0,2]); % you forgot to add [ ] brackets
hold on;
ezplot(y,[0,2]);
see the attached screenshot of the graph produced
Screen Shot 2018-12-06 at 12.46.47 PM.png

6 件のコメント

thatlowkey
thatlowkey 2018 年 12 月 6 日
thanks a lot!
madhan ravi
madhan ravi 2018 年 12 月 6 日
Anytime :) , if it worked make sure to accept the anwer and vote for it.
thatlowkey
thatlowkey 2018 年 12 月 6 日
my MATLAB v2013 is showing these errors. I tried to copy ans paste your code.
madhan ravi
madhan ravi 2018 年 12 月 6 日
you have a file named as class.m please change it's name or delete it
thatlowkey
thatlowkey 2018 年 12 月 6 日
sorry I'm a noob .....thank you so much :)
madhan ravi
madhan ravi 2018 年 12 月 6 日
You're welcome :)

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeMATLAB についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by