Simulink converts vector signal to scalar

  • Follow


I am unsure what is happening in reference to the subject.  (R2008a)

How do I correctly create a vector?  I can't do it from an embedded function - the ports GUI says that my vector/array is compiled as a 3x3 but is still output as a 1x1.

I figured a mux or matrix concatenate should do the trick.  Muxing 3 scalars 3 times, transposing the three sets, and then muxing the three transposed sets should ideally create a 3x3.  That didn't work either.

The matrix concatenate made 3x1s on output, but when the three sets reach the fourth concatenate together, only the first enters as a concatenate - the others enter as scalar inputs (even though they output from their concatenate blocks as 3x1s.)



Ultimately, I am trying to form a simple speed controller which, with an w input, is able to form an i.qd0 output.  I figured 3 controllers (1 for q, d, and 0) was necessary, but how does one form these outputs into an array after this?
0
Reply Nate 1/13/2011 3:01:04 PM


0 Replies
503 Views

(page loaded in 0.022 seconds)

Similiar Articles:













7/23/2012 7:18:07 PM


Reply: