MATLAB Answers

0

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

Latest activity Answered by Jackson Burns on 26 Sep 2019
How to use Matlab to determine f(3)-f(5) for a function and interval of your choice.

  2 Comments

What have you done already? Do you have some ideas?
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

Sign in to comment.

Products


Release

R2019b

1 Answer

Answer by Jackson Burns on 26 Sep 2019

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

  0 Comments

Sign in to comment.