Info
La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.
Converting a variable sized cell array to a matrix
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Jay Vaidya
el 16 de Nov. de 2020
Cerrada: MATLAB Answer Bot
el 20 de Ag. de 2021
I have a cell as below:
5 -3 11
2 3 7
-9 7
-1 3 2 4
-4
I want to convert this to a matrix. I don't know the maximum columns of the data. That means, given a cell, first I need to split the data and see what is the maximum number of columns and then generate the matrix accordingly.
1 comentario
the cyclist
el 16 de Nov. de 2020
Editada: the cyclist
el 16 de Nov. de 2020
The way you have written this, it leaves a lot of ambiguity. Is this an accurate definiion for your cell array?
C = {5, -3, 11, [];
2, 3, 7, [];
-9, 7, [], [];
-1, 3, 2, 4;
-4, [], [], []};
If not, can you define it in MATLAB notation, or upload it here in a MAT file?
Respuesta aceptada
Sourabh Kondapaka
el 18 de Nov. de 2020
If this is still not clear. Please upload a .mat file of the variable using save() method in matlab.
0 comentarios
Más respuestas (0)
La pregunta está cerrada.
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!