how to reshape array in a for cycle

1 view (last 30 days)
vittorio calbucci
vittorio calbucci on 18 Jan 2018
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

Answers (0)

Community Treasure Hunt

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

Start Hunting!