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

조회 수: 4 (최근 30일)
Suné Janse van Rensburg
Suné Janse van Rensburg 2019년 9월 26일
답변: Jackson Burns 2019년 9월 26일
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일
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에서 Line Plots에 대해 자세히 알아보기

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by