Need to put in variables in 3d matrix
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi
I have data of (x,y) coordinates in two column vectors and classifications in a third vector. I want have a matrix which ranges from the numbers in the x,y coordinates. I want to put in the classifications on the right coordinates creating a 3D matrix. Note I must have a 3d matrix and not a cell.
1 Kommentar
Subhadeep Koley
am 8 Nov. 2020
Is it numerical / logical / string / categorical? You can verify this using the below command
class(classificationVector) % replace 'classificationVector' with the variable name of your 3rd vector
Antworten (0)
Siehe auch
Kategorien
Mehr zu Logical finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!