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.

question on a matlab struct data?

Status
Not open for further replies.

feel_on_on

Full Member level 5
Joined
Apr 29, 2005
Messages
284
Helped
6
Reputation
12
Reaction score
4
Trophy points
1,298
Activity points
3,234
I'm reading some matlab code .

Cfg.ctrl.A = Cfg.wave.B.

please tell me why use struct type ? what is the merit ?
 

AndyECE

Member level 5
Joined
Oct 17, 2008
Messages
85
Helped
18
Reputation
36
Reaction score
5
Trophy points
1,288
Activity points
1,933
I like to use structures in cases where I have to pass complicated parameters to functions. I can load all my attributes or data to this one structure, then pass the whole thing over to my function in one go.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top