my problem is about @.
이전 댓글 표시
syms x
f=@x x.^2
quad(f,0,2)
System give error that 'Invalid expression. Check for missing multiplication operator, missing or unbalanced delimiters, or other syntax error. To construct matrices, use brackets instead of parentheses.'
.....................................................................................................................................................................................................................................
PLEASE HELP ME
댓글 수: 2
Stephen23
2022년 2월 3일
Note that syms does nothing here. Get rid of it.
Sevval Zengin
2022년 2월 3일
채택된 답변
추가 답변 (1개)
try it:
syms x
f=@(x) x.^2
quad(f,0,2)
카테고리
도움말 센터 및 File Exchange에서 Mathematics에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!