Solo plotea en 2D. Error al utilizar surf o scatter3 en 3D

1 vue (au cours des 30 derniers jours)
Hugo Alvarez
Hugo Alvarez le 23 Mai 2022
Réponse apportée : Voss le 28 Mai 2022
hola: Tengo un problema con el ploter en 3D. Solo representa en 2D con los comandos surf y scatter3 y creo que es de configuracion. Podría indicarme alguien la solucion.
  3 commentaires
Hugo Alvarez
Hugo Alvarez le 23 Mai 2022
buenos dias: Acabo de ejecutarlo y me pone:
view(3)
Execution of script view as a function is not supported:
C:\Users\PC\Desktop\MATLAP CURSO\MASTER CAMINOS\view.m
Hugo Alvarez
Hugo Alvarez le 23 Mai 2022
Acabo de ver el error. habia nombrado un script con el nombre de view y provocaba un error en la funcion.

Connectez-vous pour commenter.

Réponses (1)

Voss
Voss le 28 Mai 2022
You can rename your script view.m to another name that doesn't shadow a built-in function, or you can change the View property of the axes without using the view function:
scatter3(rand(10,1),rand(10,1),rand(10,1))
set(gca(),'View',[30 60])

Catégories

En savoir plus sur Visualization dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by