Finding y-value of a function with corresponding x-value given

How to use Matlab to determine f(3)-f(5) for a function and interval of your choice.

2 件のコメント

darova
darova 2019 年 9 月 26 日
What have you done already? Do you have some ideas?
Suné Janse van Rensburg
Suné Janse van Rensburg 2019 年 9 月 26 日
function y = f(x)
y = asind(x);
end
plotfunc2d(y, x =-5..5): grid on
I need to plot the function aswell but I'm really lost I don't know what to do

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

回答 (1 件)

Jackson Burns
Jackson Burns 2019 年 9 月 26 日

0 投票

f = @(x) asind(x);
f(3)-f(5)
a = 0:0.1:5;
plot(a,real(f(a)),a,imag(f(a)))

カテゴリ

ヘルプ センター および File ExchangeCreating, Deleting, and Querying Graphics Objects についてさらに検索

製品

リリース

R2019b

質問済み:

2019 年 9 月 26 日

回答済み:

2019 年 9 月 26 日

Community Treasure Hunt

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

Start Hunting!

Translated by