read each line of 3 values of a ( n*3 matrix) as a x,y,z positions
Ältere Kommentare anzeigen
Hi there! Hi have this k =
1 1 2
2 1 2
2 2 2
n1 n2 n3
n4 n5 n6
n7 n8 n9
n11 n12 n13
(...) (...) (...)
And I want for each line to be read as a position xyz, .
For example:
1st line: x=1, y=1, z=2
Afterwards I want to create a new 2*2*2 matrix of zeros, where the xyz positions that I got above are written with a 1 on the new matrix.
ANy help? I need to solve these asap!
Regards
Akzeptierte Antwort
Weitere Antworten (1)
André Sousa
am 26 Mai 2014
0 Stimmen
Kategorien
Mehr zu Bounding Regions finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!