Pointers in MATLAB programming

Status
Not open for further replies.

a_ronagh

Junior Member level 3
Joined
Dec 21, 2004
Messages
31
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
288
Hi everybody

Is there something like "pointers" in MATLAB programming language?
I want to deal with many variables in several m.files and refer to them from another m.files.and it is best done by pointers.

best regards
 

Re: pointers in MATLAB?

why?
why would you need pointers in matlab?
matlab code is a script, which will be compiled to pseudo code in the case of a function. I don't think it's usefull to think about it as you'd do in C++. I guess you should see argument passing as passing by reference.

if you want to reduce the number of arguments, put them in one vector or in a struct.

Antharax
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…