Borrar filtros
Borrar filtros

transpose matrix and data arrangement in simulink

3 visualizaciones (últimos 30 días)
yana osman
yana osman el 26 de Mayo de 2012
Comentada: Junaid el 20 de Abr. de 2023
Hi all, I have two questions to ask.hope someone can help me.
1. I have (321X4) matrix in my workspace. I want to transpose this matrix to (4X321) matrix but when i add transpose block in my diagram, the result appear is (1X4x321). How to get 2 dimension result?
2. I have (321X4) matrix in my workspace and i name it simout. For the next step, 1want to arrange my data like this time 1 = [simout(1,1) ; simout(1,2) ; simout(1,3) ; simout(1,4)]; I have done this arrangement in emmbedded matlab function. but unfortunately simout(1,1) were read as (1:321,1) so the matrix result is (321X1) matrix not (1X1) matrix. How to solve this problem?
All these works were done in simulink anyway.Thank you all
  1 comentario
Junaid
Junaid el 20 de Abr. de 2023
Hi you got any solution I am getting the same probelm ?

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Programmatic Model Editing 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