how to reshape array in a for cycle

1 次查看(过去 30 天)
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 CenterFile Exchange 中查找有关 Numerical Integration and Differentiation 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by