How to make the matrix first column name (character), second column content (number)
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
like this![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1015650/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1015650/image.png)
0 Commenti
Risposta accettata
KSSV
il 30 Mag 2022
For this the best suitable is table
varname = {'H1e' ; 'H2e' ;'H3e';'H4e';'H5e'} ;
val = [12; 0.58; 5; 7;3.98] ;
T = table(varname,val)
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Data Types in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!