Using Surf function with matrix

3 visualizaciones (últimos 30 días)
Scott Dean Seedell
Scott Dean Seedell el 1 de Ag. de 2020
Respondida: Alan Stevens el 1 de Ag. de 2020
Can anyone give a quick solution how I can generate a surface plot using 3x column matrix (C attached).
when using: surf(C(:,1),C(:,2),C(:,3))
I get the message 'Z must be a matrix, not a scalar or vector'
Thanks
  1 comentario
Sriram Tadavarty
Sriram Tadavarty el 1 de Ag. de 2020
Try directly surf(C) and see if the output is as expected.

Iniciar sesión para comentar.

Respuestas (2)

madhan ravi
madhan ravi el 1 de Ag. de 2020
surf(C)

Alan Stevens
Alan Stevens el 1 de Ag. de 2020
What about simply:
surf(C)

Categorías

Más información sobre Surface and Mesh Plots en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by