Plotting a function inside a m-file?
조회 수: 1 (최근 30일)
이전 댓글 표시
I ran A3.m but it doesn't seem to create a correct plot.
댓글 수: 0
채택된 답변
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
댓글 수: 0
추가 답변 (1개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Annotations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!