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

조회 수: 1 (최근 30일)
Hugo Alvarez
Hugo Alvarez 2022년 5월 23일
답변: Voss 2022년 5월 28일
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
Hugo Alvarez
Hugo Alvarez 2022년 5월 23일
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 2022년 5월 23일
Acabo de ver el error. habia nombrado un script con el nombre de view y provocaba un error en la funcion.

댓글을 달려면 로그인하십시오.

답변 (1개)

Voss
Voss 2022년 5월 28일
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])

카테고리

Help CenterFile Exchange에서 Visualization에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by