How to convert cell to matrix
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Shahar ben ezra
il 2 Mar 2021
Commentato: Shahar ben ezra
il 2 Mar 2021
hi
How to convert cell to matrix in this situation
t= readtable('loopTest');
for i=1:3
new_matrix{i}=t(:,i*3);
end
new_matrix=cell2mat(new_matrix) % this is not work:(
new_matrix=mean(new_matrix)
It is important for me to use the readtable function and not readmatrix
If I did this in the readmatrix function I would get a matrix of 16 * 3
This is what I want only with function"readtable"
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/536716/image.png)
0 Commenti
Risposta accettata
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Cell Arrays 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!