Splitting a large vectors into a matrix
Mostrar comentarios más antiguos
I have a vector with 1000 elements that I would like to split into a 20x50 matrix. Here's my code so far.
z= sym(1:1000);
e=(exp(z))
matofe=double(e);
finalmat=sym(matofe)
Any suggestions?
Respuestas (1)
the cyclist
el 3 de Nov. de 2015
e_matrix = reshape(e_vector,20,50);
Categorías
Más información sobre Symbolic Math Toolbox en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!