Thread Subject: error using load

Subject: error using load

From: Prasenjeet Patil

Date: 2 Jun, 2009 16:29:03

Message: 1 of 2

I am writing a code for OCR using template matching.While running the code I am getting this error. I have placed the templates.mat file in the same directory.
 Error using ==> load
Unable to read file templates: No such file or directory.

Warning: The value of local variables may have been changed to match the
         globals. Future versions of MATLAB will require that you declare
         a variable to be global before you use that variable.

Subject: error using load

From: us

Date: 2 Jun, 2009 16:58:01

Message: 2 of 2

"Prasenjeet Patil" <prasenjeet.patil@hotmail.com> wrote in message <h03k0f$jbr$1@fred.mathworks.com>...
> I am writing a code for OCR using template matching.While running the code I am getting this error. I have placed the templates.mat file in the same directory.
> Error using ==> load
> Unable to read file templates: No such file or directory.
>
> Warning: The value of local variables may have been changed to match the
> globals. Future versions of MATLAB will require that you declare
> a variable to be global before you use that variable.

the error messages seem cristal clear...

% 1) in your file, add this
if ~exist('youmatname','file')
     cd % <- show where you are...
     dir % < see what you have...
     keyboard;
end

% 2) typicall this happens in situations like this...
     aval=12;
     global aval;

us
      

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
global us 2 Jun, 2009 12:59:10
code us 2 Jun, 2009 12:59:10
syntax us 2 Jun, 2009 12:59:10
error Prasenjeet Patil 2 Jun, 2009 12:29:07
rssFeed for this Thread

Contact us at files@mathworks.com