Loading a workspace variable

  • Follow


Hi i am trying to load and use a workspace variable that i saved from previous program. My code is 

load LUT_ref.mat;

This loads fine but if i try to assign this variable to another variable for convenience purpose as
AA=LUT_ref;

or 

try to access an element in LUT_ref as
A=LUT_ref(:,54);

i am getting an error message as follws 
??? Undefined function or variable 'LUT_ref'.

Not sure whats wrong. Is it related to the memory issue because i got an error message in previous code saying 
'Out of memory. Type HELP MEMORY for your options'.
By the way the size of LUT_ref is 651x88689
Thanks in advance!
0
Reply lramsb4u (16) 9/22/2010 3:28:16 PM

rams <lramsb4u@gmail.com> wrote in message <105494298.96788.1285183726943.JavaMail.root@gallium.mathforum.org>...
> Hi i am trying to load and use a workspace variable that i saved from previous program. My code is 
> 
> load LUT_ref.mat;
===========

Tell us the output of these commands,

>>S=load('LUT_ref');
>>fieldnames(S),
0
Reply Matt 9/22/2010 7:47:04 PM


rams wrote:
> Hi i am trying to load and use a workspace variable that i saved from previous program. My code is 
> 
> load LUT_ref.mat;
> 
> This loads fine but if i try to assign this variable to another variable for convenience purpose as
> AA=LUT_ref;
> 
> or 
> 
> try to access an element in LUT_ref as
> A=LUT_ref(:,54);
> 
> i am getting an error message as follws 
> ??? Undefined function or variable 'LUT_ref'.
....
What's the output of

clear all
load LUT_ref.mat;
whos

--
0
Reply dpb 9/22/2010 8:40:35 PM

2 Replies
259 Views

(page loaded in 0.041 seconds)

Similiar Articles:













7/26/2012 8:59:21 PM


Reply: