How do I plot this?

1 view (last 30 days)
Vanessa Andrade
Vanessa Andrade on 6 Nov 2020
Edited: Vanessa Andrade on 6 Nov 2020
y = x^2 + y^2

Accepted Answer

KSSV
KSSV on 6 Nov 2020
There is no z involved in your equation. This is your home work, so follow the below hints.
  1. Read about linspace. DEfine your x, y with this.
  2. Use meshgrid on x,y to get matrices X, Y.
  3. Substitute X, Y in your formula. You will get Z matrix.
  4. USe surf.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!