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!