I'm getting an error using fplot, How do I get it to work?

1 回表示 (過去 30 日間)
John
John 2023 年 3 月 9 日
編集済み: Voss 2023 年 3 月 9 日
When I try to run my code I keep getting this error.
Warning: The tolerance parameter input to fplot has been removed.
> In fplot (line 93)
Error using fplot
Invalid parameter '1'.
Xs = 1.8;
fs = 10;
fi = pi/3;
t1 = -0.1;
t2 = 0.2;
t = [t1, t2];
x = inline('Xs*sin (2*pi*fs*t+fi)', 't', 'Xs','fs','fi');
fplot (x, t, 2e-3,1,'-',Xs, fs, fi)
Warning: The tolerance parameter input to fplot has been removed.
Error using fplot
Invalid parameter '1'.

採用された回答

Voss
Voss 2023 年 3 月 9 日
編集済み: Voss 2023 年 3 月 9 日
Xs = 1.8;
fs = 10;
fi = pi/3;
t1 = -0.1;
t2 = 0.2;
t = [t1, t2];
x = @(t)Xs*sin(2*pi*fs*t+fi);
fplot(x,t,'-')

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeEarth and Planetary Science についてさらに検索

タグ

製品


リリース

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by