Simulink, how to get the index z from a 3-D (x,y,z)matrix,then change the (x2,y2) and (x6,y6) according to the index z
Mostrar comentarios más antiguos

pic1
The generator will generate 128 bits samples in 10 seconds, the goal is 2 bits as one frame and then change the second frame with the 6-th frame.
I used a buffer to combine 2 bits into 1 frame, and then used a reshape block to change the frame structure. I want to get a (1,2,64) matrix using matlab function block.

Its showed in pic1 that the structure of input to Scope1 is [1*2*64],but I log the data into workspace, it showed that its an 4-D matrix as followed:

I guess the index of frame is generated automatically, cause the Matrix of Scope2 showed in workspace is a 3-D one, but i don't know how to get the dimension z (1-64)

Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Sources en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!