I am having trouble trying to take input to a user defined MATLAB function block from the output of three phase current measurement block in simulink.

I am using a User defined Matlab Function block and taking input from a Three phase current measurement block. I want the input data in an array form of three phase currents. How do I take such an input? Simply connecting the output from three phase current measurement block to the input of the function block is not working as the input only receives the first row of the total matrix of currents. Do I need to add some code to read the data differently? I can see the three phase currents in the scope and I can also import them into the workspace in any desired format but can't seem to figure out how to directly read them into my matlab function block.

2 Comments

So as I understood, your current output is in matrix format (mxn) and you want to read first row in Matlab function block.
Is this correct ?
I dont know in what format the current output from the three phase current measurement block is. All I know is that I can export it to workspace using simout in many formats(time series, structure, array, etc). I want to read this directly in the matlab function block without exporting into workspace.

Sign in to comment.

Answers (1)

Categories

Find more on Simulink in Help Center and File Exchange

Products

Asked:

on 3 Jun 2018

Answered:

on 17 Sep 2021

Community Treasure Hunt

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

Start Hunting!