Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Struct data type problem

Status
Not open for further replies.

gigalove

Newbie level 6
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

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top