Thread Subject: Transfering parameter from Workspace to M-Function

Subject: Transfering parameter from Workspace to M-Function

From: Serkan

Date: 29 Jun, 2009 21:16:02

Message: 1 of 3

Hello
I need to call a parameter from the Workspace into the m-file of the GUI, which is an M-function. Is there any easy way i can understand.
parameters in the workspace: t_sim, L
the code i tried in GUI m-file is

CASE 'PLOT_L'
plot(t_sim,L);

(and it doesnt works of course..why is this programming language is so tough job :)

thanks in advance
serkan ozturk

Subject: Transfering parameter from Workspace to M-Function

From: us

Date: 29 Jun, 2009 21:35:02

Message: 2 of 3

"Serkan " <serkanvai@gmail.com> wrote in message <h2baui$92r$1@fred.mathworks.com>...
> Hello
> I need to call a parameter from the Workspace into the m-file of the GUI, which is an M-function. Is there any easy way i can understand.
> parameters in the workspace: t_sim, L
> the code i tried in GUI m-file is
>
> CASE 'PLOT_L'
> plot(t_sim,L);
>
> (and it doesnt works of course..why is this programming language is so tough job :)
>
> thanks in advance
> serkan ozturk

for a (shortsighted) remedy, see

     help evalin;

for a better solution: reconsider the way you call your m-file...

us

Subject: Transfering parameter from Workspace to M-Function

From: Serkan

Date: 29 Jun, 2009 22:11:01

Message: 3 of 3

hi
this has been second time you helped me thanks alot. evalin has worked.. matlab help helps only then when you know which command you need :))
greetings
ser

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
reference us 29 Jun, 2009 17:39:07
workspace Serkan 29 Jun, 2009 17:19:01
gui Serkan 29 Jun, 2009 17:19:01
rssFeed for this Thread

Contact us at files@mathworks.com