Splitting a large vectors into a matrix

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?

답변 (1개)

the cyclist
the cyclist 2015년 11월 3일

0 개 추천

e_matrix = reshape(e_vector,20,50);

카테고리

도움말 센터File Exchange에서 Symbolic Math Toolbox에 대해 자세히 알아보기

질문:

2015년 11월 3일

답변:

2015년 11월 3일

Community Treasure Hunt

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

Start Hunting!

Translated by