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

2 次查看(过去 30 天)
How to use Matlab to determine f(3)-f(5) for a function and interval of your choice.
  2 个评论
Suné Janse van Rensburg
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
f = @(x) asind(x);
f(3)-f(5)
a = 0:0.1:5;
plot(a,real(f(a)),a,imag(f(a)))

类别

Help CenterFile Exchange 中查找有关 Get Started with MATLAB 的更多信息

产品


版本

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by