How to define 𝑓(𝑥, 𝑦) = 𝑒−(2√𝑥2+𝑦2)

9 views (last 30 days)
Alexxis Schwalier
Alexxis Schwalier on 17 Feb 2021
Answered: Steven Lord on 17 Feb 2021
Please help i keep getting error.
  1 Comment
Alexxis Schwalier
Alexxis Schwalier on 17 Feb 2021
Actually, it should be e^-(2sqrt(x^2+y^2))

Sign in to comment.

Answers (2)

Walter Roberson
Walter Roberson on 17 Feb 2021
exp(-2*sqrt(x.^2+y.^2))

Steven Lord
Steven Lord on 17 Feb 2021
Since this sounds like it might be part of a homework assignment, I'm just going to point you to two functions that may be of use to you: exp and hypot.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!