Graph 3D Spheres
Show older comments
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 Comment
Gustavo Gabriel
on 8 Apr 2024
Edited: Matt J
on 8 Apr 2024
Answers (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)
Categories
Find more on Graph and Network Algorithms in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!