how to do a matrix like this in a loop,[1 2 3 ... 10,
1 4 9 ... 100
1 8 27... 100]

 채택된 답변

Bruno Luong
Bruno Luong 2019년 9월 16일
편집: Bruno Luong 2019년 9월 16일

0 개 추천

(1:10).^((1:3)')
or on older MATLAB
bsxfun(@power,1:10,(1:3)')

추가 답변 (0개)

제품

태그

질문:

2019년 9월 16일

댓글:

2019년 9월 16일

Community Treasure Hunt

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

Start Hunting!

Translated by