Write Matlab code to evaluate 14x^2+2x + 4 and assign it to y.
이전 댓글 표시
I am unsure where to begin with this. I am sure it is very simple, i am new at all of this so am trying to get me head around it. I have looked everywhere and cant find anything that helps. Thanks
댓글 수: 1
Walter Roberson
2020년 3월 31일
Hint: Use .^ instead of ^
답변 (1개)
SaiDileep Kola
2020년 4월 3일
0 개 추천
It is similar to evaluating expressions in any other programming language, for instance you do it as
y = 14*(x^2) + 2*x +4;
for further study you can follow the above comment
카테고리
도움말 센터 및 File Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!