필터 지우기
필터 지우기

Plotting a function inside a m-file?

조회 수: 1 (최근 30일)
Taha
Taha 2012년 10월 10일
I ran A3.m but it doesn't seem to create a correct plot.

채택된 답변

Razvan
Razvan 2012년 10월 10일
Function f2 returns only a number... Probably you want a vector, with one element for each element of x. In this case use
function F = f2(x)
F = 2*(x.^4)-3*(x.^2)+x-7;
end

추가 답변 (1개)

Taha
Taha 2012년 10월 10일
Thanks! =D

카테고리

Help CenterFile Exchange에서 Annotations에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by