how to reshape array in a for cycle

1 回表示 (過去 30 日間)
vittorio calbucci
vittorio calbucci 2018 年 1 月 18 日
Hi everybody, i have a small problem regarding the reshape of a vector and the calculation of a feature inside a for cycle. I have a column vector that is a concatenation of n blocks of p*b elements. What i would like to perform is: 1 - extract every block of the vector. n vector of p*b elements. 2 - reshape the extracted vector in a matrix b*p. i will have n matrix of b*p elements. 3 - integrate (trapz) every single column of the n matrix. i will obtain n row vector of 1*b dimension. 4 - concatenate the n vector obtained after the integration. i will obtain a n*b matrix. 5 - imshow of the concatenated matrix (n* b)
Can be done in only one for cycle?
Thanks in advance

回答 (0 件)

カテゴリ

Help Center および File ExchangeNumerical Integration and Differentiation についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by