How to write a function equation in matlab?
Show older comments
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 Comments
James Tursa
on 21 Nov 2016
What is d? What is m? Are the xj simply the elements of X?
Jim
on 21 Nov 2016
James Tursa
on 21 Nov 2016
You have ranges on both x1 and x2. Does that mean this is supposed to generate a surface plot?
Jim
on 21 Nov 2016
Accepted Answer
More Answers (0)
Categories
Find more on Loops and Conditional Statements in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!