Graph 3D Spheres
이전 댓글 표시
Buenos dias Comunidad! Intente agregar comentarios a mi post anterior, pero me dice que es imposible cargarlo, que algo salio mal.
Asi que aca va de nuevo.
Ya me respondieron sobre como graficar esferas o volumenes 3D desde un archivos (Gracias Voss!!).
Ahora tengo esta situacion, necesito hacer lo mismo, pero un archivo que tiene menos datos.
como se puede modificar el script para que lea una matriz de 12x12? (La anterior era de 24x24)
Adjunto el file para ilustrar...
Muchas gracias!
Good morning Community! I tried to add comments to my previous post, but it tells me that it is impossible to load it, that something went wrong.
So here it goes again.
They already answered me about how to graph 3D spheres or volumes from a file (Thanks Voss!!).
Now I have this situation, I need to do the same thing, but a file that has less data.
How can you modify the script so that it reads a 12x12 matrix? (The previous one was 24x24)
I attach the file to illustrate...
Thank you so much!
댓글 수: 1
Gustavo Gabriel
2024년 4월 8일
편집: Matt J
2024년 4월 8일
답변 (1개)
M = readmatrix('New Sphere 3D.txt');
angles = M(1,1:end-1);
z = M(2:end,1);
M(1,:) = [];
M(:,1) = [];
whos M z angles
disp(M)
카테고리
도움말 센터 및 File Exchange에서 Graph and Network Algorithms에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!