how to reshape array in a for cycle

1 visualización (últimos 30 días)
vittorio calbucci
vittorio calbucci el 18 de En. de 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

Respuestas (0)

Categorías

Más información sobre Numerical Integration and Differentiation en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by