Thursday, January 20, 2011

HW1,prob2 help!!


Embedded MATLAB Interface Error: Port width mismatch. Input "u"(#681) expects a one dimensional vector with 5 elements. The signal is a one dimensional vector with 4 elements.







I am having some trouble with getting the simulation of problem2 to work. I have attached an image of the simulink block diagram along with the error. Any help/suggestions are highly appreciated.

2 comments:

  1. -Open the embedded LC filter function script, click to “Tools” and “Edit Data/Ports”, click on “u” and enter 4 in size (page 7 of the “Step by step notes” on the ECEN5807 matlab simulink page).
    - Also, please add the “Gain of one” block between SyncBuck ig output and LCFilter ig input (per “HW1 Problem 2 Algebraic Loop post below).

    ReplyDelete
  2. thanks for that! just one more concern. I tried inserting the LC filter block in the closed loop system as well, but the bode plot shows up blank. I removed the filter block, inserted Vg and got the familiar plot. Anything I am missing out?

    ReplyDelete

Note: Only a member of this blog may post a comment.