Need to put in variables in 3d matrix

1 回表示 (過去 30 日間)
Torbjörn Olsson
Torbjörn Olsson 2020 年 11 月 7 日
コメント済み: Subhadeep Koley 2020 年 11 月 8 日
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 件のコメント
Subhadeep Koley
Subhadeep Koley 2020 年 11 月 8 日
@Torbjörn Olsson what is the data type of your "classification vector" (i.e. the 3rd vector)?
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

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeGet Started with MATLAB についてさらに検索

製品


リリース

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by