Struct data type problem

Status
Not open for further replies.

gigalove

Newbie level 6
Joined
Jan 19, 2010
Messages
14
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,283
Activity points
1,367
I have designed a 2nd order sigma-delta modulator in simulink. In order to calculate its SNR and PSD and....I have added the block of "to workspace" at its output.
Now i have the Yout in the workspace but i can't do anything with it such as to plot it, i get something like this:
>> f=[1:20]

f =

Columns 1 through 16

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16

Columns 17 through 20

17 18 19 20

>> plot (f,Yout)
??? Error using ==> plot
Invalid line property: 'time'.

What is wrong with what i do? Could anybody help me plz?
 

The "To Workspace" block saves the data in a structure format by default. You need to point to the fields in the structure to see the data.
The data is in Yout.signals.values.
If you saved as "structure with time" the time is in Yout.time
 

    gigalove

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…