How to write a function equation in matlab?
이전 댓글 표시
Hello, I'm having trouble on how to write this function (see insert image) into Matlab. It seems like a basic question, but I'm unsure. Any help would be great.

I have an general idea how to write it in matlab, but I'm not sure if this is correct.
func_l = c*exp(1/pi)*(x - A)^2 * cos*(pi*(x - A)^2);
댓글 수: 4
James Tursa
2016년 11월 21일
What is d? What is m? Are the xj simply the elements of X?
Jim
2016년 11월 21일
James Tursa
2016년 11월 21일
You have ranges on both x1 and x2. Does that mean this is supposed to generate a surface plot?
Jim
2016년 11월 21일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 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!