Thread Subject: Attempt to execute script radon as a function

Subject: Attempt to execute script radon as a function

From: prayag.narula@gmail.com

Date: 28 Sep, 2006 23:03:48

Message: 1 of 24

Hi there,

I am a novice Matlab user. I am using Matlab 7.0 (R 14) for an image
processing job and am facing a curious problem. I am trying to use
Radon function which is a part of image processing toolbox. I am
getting an error which goes like

"Attempt to execute script radon as a function in line number..."

When I use any other function pertaining to the same toolbox, I am not
facing any problem. I have tried uninstall -reinstall. I have tried
renaming radon.m file too and changed name in my code. But to no avail.

Also my friend while using the same code on his system does not have
any problem in using the function.

Any idea how I can get it right.

Thanks in advance

Ciao

Subject: Attempt to execute script radon as a function

From: Rune Allnor

Date: 28 Sep, 2006 23:07:50

Message: 2 of 24


prayag.nar...@gmail.com skrev:
> Hi there,
>
> I am a novice Matlab user. I am using Matlab 7.0 (R 14) for an image
> processing job and am facing a curious problem. I am trying to use
> Radon function which is a part of image processing toolbox. I am
> getting an error which goes like
>
> "Attempt to execute script radon as a function in line number..."

There is another file in your matlab path called radon.m. You have
to find that file and rename it.

Rune

Subject: Attempt to execute script radon as a function

From: Nasser Abbasi

Date: 29 Sep, 2006 06:13:02

Message: 3 of 24


<prayag.narula@gmail.com> wrote in message
news:1159509828.004442.291000@m73g2000cwd.googlegroups.com...
> Hi there,
>
> I am a novice Matlab user. I am using Matlab 7.0 (R 14) for an image
> processing job and am facing a curious problem. I am trying to use
> Radon function which is a part of image processing toolbox. I am
> getting an error which goes like
>
> "Attempt to execute script radon as a function in line number..."
>
> When I use any other function pertaining to the same toolbox, I am not
> facing any problem. I have tried uninstall -reinstall. I have tried
> renaming radon.m file too and changed name in my code. But to no avail.
>
> Also my friend while using the same code on his system does not have
> any problem in using the function.
>
> Any idea how I can get it right.
>
> Thanks in advance
>
> Ciao
>

This error usually occur if you try to run an m file which does not start
with the 'function' keyword as its first executable statement, but later on
it contains a 'function' definition. (as you know, an m file can contain
more than one function).

If this file is supposed to be a function, then it must have its first
statement be 'function', else it will be treated as a script. A script file
can NOT have the keyword function in it.

Why not type the file and find out? It is possible you edited the file by
mistake and deleted the first line?

Nasser

Subject: Attempt to execute script radon as a function

From: naaz911@gmail.com

Date: 28 Sep, 2006 23:31:05

Message: 4 of 24


Rune Allnor wrote:
> prayag.nar...@gmail.com skrev:
> > Hi there,
> >
> > I am a novice Matlab user. I am using Matlab 7.0 (R 14) for an image
> > processing job and am facing a curious problem. I am trying to use
> > Radon function which is a part of image processing toolbox. I am
> > getting an error which goes like
> >
> > "Attempt to execute script radon as a function in line number..."
>
> There is another file in your matlab path called radon.m. You have
> to find that file and rename it.
>
> Rune

hi rune....
i renmaed the file radon.m to radon1.m in both the 'images' and 'ja'
folder....
but it still giving the same error.....
what now?

Subject: Attempt to execute script radon as a function

From: prayag.narula@gmail.com

Date: 28 Sep, 2006 23:32:33

Message: 5 of 24

Hi Guys,

@Rune
I did find another file with the named radon.m and renamed it. so now i
had both radon.m renamed as radon1.m and also i changed the function
call in the source code. But to no avail. The compiler says it cannot
find radon1.m . Can u please suggest what else I might try.

@ Nasser,
I had already checked that. radon.m starts with a the function keyword.
And I don't think I edited radon.m ever. And I even tried reinstalling
which would have installed new radon.m in the system. Any thing else I
can try.

It sure is a freak problem.

Thanks a lot for showing interest guys.Keep pouring suggestions.

Prayag Narula.

Nasser Abbasi wrote:
> <prayag.narula@gmail.com> wrote in message
> news:1159509828.004442.291000@m73g2000cwd.googlegroups.com...
> > Hi there,
> >
> > I am a novice Matlab user. I am using Matlab 7.0 (R 14) for an image
> > processing job and am facing a curious problem. I am trying to use
> > Radon function which is a part of image processing toolbox. I am
> > getting an error which goes like
> >
> > "Attempt to execute script radon as a function in line number..."
> >
> > When I use any other function pertaining to the same toolbox, I am not
> > facing any problem. I have tried uninstall -reinstall. I have tried
> > renaming radon.m file too and changed name in my code. But to no avail.
> >
> > Also my friend while using the same code on his system does not have
> > any problem in using the function.
> >
> > Any idea how I can get it right.
> >
> > Thanks in advance
> >
> > Ciao
> >
>
> This error usually occur if you try to run an m file which does not start
> with the 'function' keyword as its first executable statement, but later on
> it contains a 'function' definition. (as you know, an m file can contain
> more than one function).
>
> If this file is supposed to be a function, then it must have its first
> statement be 'function', else it will be treated as a script. A script file
> can NOT have the keyword function in it.
>
> Why not type the file and find out? It is possible you edited the file by
> mistake and deleted the first line?
>
> Nasser

Subject: Attempt to execute script radon as a function

From: Rune Allnor

Date: 29 Sep, 2006 00:04:59

Message: 6 of 24


naaz911@gmail.com skrev:
> Rune Allnor wrote:
> > prayag.nar...@gmail.com skrev:
> > > Hi there,
> > >
> > > I am a novice Matlab user. I am using Matlab 7.0 (R 14) for an image
> > > processing job and am facing a curious problem. I am trying to use
> > > Radon function which is a part of image processing toolbox. I am
> > > getting an error which goes like
> > >
> > > "Attempt to execute script radon as a function in line number..."
> >
> > There is another file in your matlab path called radon.m. You have
> > to find that file and rename it.
> >
> > Rune
>
> hi rune....
> i renmaed the file radon.m to radon1.m in both the 'images' and 'ja'
> folder....
> but it still giving the same error.....
> what now?

Then you haven't found all the files. You'll have to search for more
files
named radon.m. You have found all when you get the error message
"radon: Unknown function or variable" after renaming the file.

Rune

Subject: Attempt to execute script radon as a function

From: Michael Wild

Date: 29 Sep, 2006 09:36:09

Message: 7 of 24

On Fri, 29 Sep 2006 00:04:59 -0700, Rune Allnor wrote:

[...]

>> hi rune....
>> i renmaed the file radon.m to radon1.m in both the 'images' and 'ja'
>> folder....
>> but it still giving the same error.....
>> what now?
>
> Then you haven't found all the files. You'll have to search for more
> files
> named radon.m. You have found all when you get the error message
> "radon: Unknown function or variable" after renaming the file.
>
> Rune


which radon -all

will tell you where the files are.


michael

Subject: Attempt to execute script radon as a function

From: Titus Edelhofer

Date: 29 Sep, 2006 09:42:39

Message: 8 of 24

Hi,
what does the debugger tell you? Menu Debug->Stop if Errors,
then when your program stops at the call to radon enter
which radon
at the command line. This might give you some insight...

Titus

<prayag.narula@gmail.com> schrieb im Newsbeitrag
news:1159509828.004442.291000@m73g2000cwd.googlegroups.com...
> Hi there,
>
> I am a novice Matlab user. I am using Matlab 7.0 (R 14) for an image
> processing job and am facing a curious problem. I am trying to use
> Radon function which is a part of image processing toolbox. I am
> getting an error which goes like
>
> "Attempt to execute script radon as a function in line number..."
>
> When I use any other function pertaining to the same toolbox, I am not
> facing any problem. I have tried uninstall -reinstall. I have tried
> renaming radon.m file too and changed name in my code. But to no avail.
>
> Also my friend while using the same code on his system does not have
> any problem in using the function.
>
> Any idea how I can get it right.
>
> Thanks in advance
>
> Ciao
>

Subject: Attempt to execute script radon as a function

From: French Caro

Date: 29 Sep, 2006 03:45:23

Message: 9 of 24

Hi,

It seems like both radon.m you have found are functions given by
Matlab not yours, no ?
So you haven't to rename them.
What you have to when you have the error is to understand what is
radon at this moment.
For this you can first use exist => exist('radon'), see the help
to see what type radon is.
If it is a variable for example clear it and find where you have a
variable named radon and change its name.
If it is a function to know all the functions names radon :
which radon -all

Caroline

Subject: Attempt to execute script radon as a function

From: Steven Lord

Date: 29 Sep, 2006 06:44:52

Message: 10 of 24


<prayag.narula@gmail.com> wrote in message
news:1159509828.004442.291000@m73g2000cwd.googlegroups.com...
> Hi there,
>
> I am a novice Matlab user. I am using Matlab 7.0 (R 14) for an image
> processing job and am facing a curious problem. I am trying to use
> Radon function which is a part of image processing toolbox. I am
> getting an error which goes like
>
> "Attempt to execute script radon as a function in line number..."
>
> When I use any other function pertaining to the same toolbox, I am not
> facing any problem. I have tried uninstall -reinstall. I have tried
> renaming radon.m file too and changed name in my code. But to no avail.
>
> Also my friend while using the same code on his system does not have
> any problem in using the function.
>
> Any idea how I can get it right.

Type 'which -all radon' without the quotes at the MATLAB prompt. It should
show the file in the Image Processing Toolbox and at least one other.
Rename that file, move the directory that it's in lower on the MATLAB path,
or remove the directory from the path entirely. [Note: no /ja directories
should be on the path. The files in this directory contain only Japanese
help text; they are not intended to be run.] If that doesn't work, post the
output of that command to the newsgroup.

--
Steve Lord
slord@mathworks.com

Subject: Attempt to execute script radon as a function

From: Peter Boettcher

Date: 29 Sep, 2006 09:32:55

Message: 11 of 24

prayag.narula@gmail.com writes:

> Hi Guys,
>
> @Rune
> I did find another file with the named radon.m and renamed it. so now i
> had both radon.m renamed as radon1.m and also i changed the function
> call in the source code. But to no avail. The compiler says it cannot
> find radon1.m . Can u please suggest what else I might try.

I'm not sure what you are renaming. The radon.m that ships with
MATLAB should not be renamed. If you are trying to call that radon.m,
then don't change that call either. In that case, just rename your
OTHER radon.m to randon.m.bak or something to get it out the way
entirely.

If you are trying to create and call your own function, and you don't
want to involve MATLAB's radon.m at all, then call yours my_radon.m,
be sure the function name on the inside is the same, and call it the
same way. If THIS doesn't work, post back again with details, since
it will have nothing to do with namespace confusion.

--
Peter Boettcher <boettcher@ll.mit.edu>
MIT Lincoln Laboratory
MATLAB FAQ: http://www.mit.edu/~pwb/cssm/

Subject: Attempt to execute script radon as a function

From: naaz911@gmail.com

Date: 29 Sep, 2006 09:06:14

Message: 12 of 24


Peter Boettcher wrote:
> prayag.narula@gmail.com writes:
>
> > Hi Guys,
> >
> > @Rune
> > I did find another file with the named radon.m and renamed it. so now i
> > had both radon.m renamed as radon1.m and also i changed the function
> > call in the source code. But to no avail. The compiler says it cannot
> > find radon1.m . Can u please suggest what else I might try.
>
> I'm not sure what you are renaming. The radon.m that ships with
> MATLAB should not be renamed. If you are trying to call that radon.m,
> then don't change that call either. In that case, just rename your
> OTHER radon.m to randon.m.bak or something to get it out the way
> entirely.
>
> If you are trying to create and call your own function, and you don't
> want to involve MATLAB's radon.m at all, then call yours my_radon.m,
> be sure the function name on the inside is the same, and call it the
> same way. If THIS doesn't work, post back again with details, since
> it will have nothing to do with namespace confusion.
>
> --
> Peter Boettcher <boettcher@ll.mit.edu>
> MIT Lincoln Laboratory
> MATLAB FAQ: http://www.mit.edu/~pwb/cssm/

Hello Peter...
thanks a lot for replying. first of all i have created a radon function
of my own. i only wanted to use the radon transform function from the
image processing toolbox.
this is my simple code:
"I = imread('fp2.jpg');
I_gray = rgb2gray(I);
theta = 0:180;
[R xp] = radon(I,theta);"

and this is the error reported:
"??? Attempt to execute SCRIPT radon as a function.

Error in ==> radon at 4
[R xp] = radon(I,theta);"

so that is all i wanted to do...see the radon transform of an image.
please do reply.
thank again.

Subject: Attempt to execute script radon as a function

From: naaz911@gmail.com

Date: 29 Sep, 2006 09:08:53

Message: 13 of 24


Rune Allnor wrote:
> naaz911@gmail.com skrev:
> > Rune Allnor wrote:
> > > prayag.nar...@gmail.com skrev:
> > > > Hi there,
> > > >
> > > > I am a novice Matlab user. I am using Matlab 7.0 (R 14) for an image
> > > > processing job and am facing a curious problem. I am trying to use
> > > > Radon function which is a part of image processing toolbox. I am
> > > > getting an error which goes like
> > > >
> > > > "Attempt to execute script radon as a function in line number..."
> > >
> > > There is another file in your matlab path called radon.m. You have
> > > to find that file and rename it.
> > >
> > > Rune
> >
> > hi rune....
> > i renmaed the file radon.m to radon1.m in both the 'images' and 'ja'
> > folder....
> > but it still giving the same error.....
> > what now?
>
> Then you haven't found all the files. You'll have to search for more
> files
> named radon.m. You have found all when you get the error message
> "radon: Unknown function or variable" after renaming the file.
>
> Rune

hi Rune....
well i have found all the files called 'radon.m'.....
and thanks Michael...i used the command 'which radon -all' to see the
files.....
so basically there are no more files called radon.m

hmmm.....seriously this is absurd...every other function on the image
processing toolbox is fine...but this.

Subject: Attempt to execute script radon as a function

From: naaz911@gmail.com

Date: 29 Sep, 2006 09:12:59

Message: 14 of 24


Steven Lord wrote:
> <prayag.narula@gmail.com> wrote in message
> news:1159509828.004442.291000@m73g2000cwd.googlegroups.com...
> > Hi there,
> >
> > I am a novice Matlab user. I am using Matlab 7.0 (R 14) for an image
> > processing job and am facing a curious problem. I am trying to use
> > Radon function which is a part of image processing toolbox. I am
> > getting an error which goes like
> >
> > "Attempt to execute script radon as a function in line number..."
> >
> > When I use any other function pertaining to the same toolbox, I am not
> > facing any problem. I have tried uninstall -reinstall. I have tried
> > renaming radon.m file too and changed name in my code. But to no avail.
> >
> > Also my friend while using the same code on his system does not have
> > any problem in using the function.
> >
> > Any idea how I can get it right.
>
> Type 'which -all radon' without the quotes at the MATLAB prompt. It should
> show the file in the Image Processing Toolbox and at least one other.
> Rename that file, move the directory that it's in lower on the MATLAB path,
> or remove the directory from the path entirely. [Note: no /ja directories
> should be on the path. The files in this directory contain only Japanese
> help text; they are not intended to be run.] If that doesn't work, post the
> output of that command to the newsgroup.
>
> --
> Steve Lord
> slord@mathworks.com

Hi Steven....it is really great tha tyou replied.
i used 'which radon -all' and here is the output

>> which radon -all
D:\MATLAB7\work\radon.m
D:\MATLAB7\toolbox\images\images\radon.m % Shadowed

so there is no other file except one in the image processing
toolbox........
the one in work i suppose is not the issue because i was using radon in
another file named
'newcode.m' before making this radon. and it showed the same error.

thanks again.

Subject: Attempt to execute script radon as a function

From: naaz911@gmail.com

Date: 29 Sep, 2006 09:24:25

Message: 15 of 24


naaz...@gmail.com wrote:
> Steven Lord wrote:
> > <prayag.narula@gmail.com> wrote in message
> > news:1159509828.004442.291000@m73g2000cwd.googlegroups.com...
> > > Hi there,
> > >
> > > I am a novice Matlab user. I am using Matlab 7.0 (R 14) for an image
> > > processing job and am facing a curious problem. I am trying to use
> > > Radon function which is a part of image processing toolbox. I am
> > > getting an error which goes like
> > >
> > > "Attempt to execute script radon as a function in line number..."
> > >
> > > When I use any other function pertaining to the same toolbox, I am not
> > > facing any problem. I have tried uninstall -reinstall. I have tried
> > > renaming radon.m file too and changed name in my code. But to no avail.
> > >
> > > Also my friend while using the same code on his system does not have
> > > any problem in using the function.
> > >
> > > Any idea how I can get it right.
> >
> > Type 'which -all radon' without the quotes at the MATLAB prompt. It should
> > show the file in the Image Processing Toolbox and at least one other.
> > Rename that file, move the directory that it's in lower on the MATLAB path,
> > or remove the directory from the path entirely. [Note: no /ja directories
> > should be on the path. The files in this directory contain only Japanese
> > help text; they are not intended to be run.] If that doesn't work, post the
> > output of that command to the newsgroup.
> >
> > --
> > Steve Lord
> > slord@mathworks.com
>
> Hi Steven....it is really great tha tyou replied.
> i used 'which radon -all' and here is the output
>
> >> which radon -all
> D:\MATLAB7\work\radon.m
> D:\MATLAB7\toolbox\images\images\radon.m % Shadowed
>
> so there is no other file except one in the image processing
> toolbox........
> the one in work i suppose is not the issue because i was using radon in
> another file named
> 'newcode.m' before making this radon. and it showed the same error.
>
> thanks again.

well all you guys....i am sorry but it was a big mistake on my
side........
i didnot consider my test file radon.m.........in the
workspace...........
i just removed my test file......and it all worked out fine.

i am sorry, really it was really foolish. all you guys were mentioning
about renaming any other file called radon.m....but i just overlooked
it........

oh my god.....i am sorry......seriously.

i wasted a lot of yuor time....
sorry again guys.......
naaz

Subject: Attempt to execute script radon as a function

From: Steven Lord

Date: 29 Sep, 2006 12:34:57

Message: 16 of 24


<naaz911@gmail.com> wrote in message
news:1159545974.319752.250210@b28g2000cwb.googlegroups.com...
>
> Peter Boettcher wrote:
>> prayag.narula@gmail.com writes:
>>
>> > Hi Guys,
>> >
>> > @Rune
>> > I did find another file with the named radon.m and renamed it. so now i
>> > had both radon.m renamed as radon1.m and also i changed the function
>> > call in the source code. But to no avail. The compiler says it cannot
>> > find radon1.m . Can u please suggest what else I might try.
>>
>> I'm not sure what you are renaming. The radon.m that ships with
>> MATLAB should not be renamed. If you are trying to call that radon.m,
>> then don't change that call either. In that case, just rename your
>> OTHER radon.m to randon.m.bak or something to get it out the way
>> entirely.
>>
>> If you are trying to create and call your own function, and you don't
>> want to involve MATLAB's radon.m at all, then call yours my_radon.m,
>> be sure the function name on the inside is the same, and call it the
>> same way. If THIS doesn't work, post back again with details, since
>> it will have nothing to do with namespace confusion.
>>
>> --
>> Peter Boettcher <boettcher@ll.mit.edu>
>> MIT Lincoln Laboratory
>> MATLAB FAQ: http://www.mit.edu/~pwb/cssm/
>
> Hello Peter...
> thanks a lot for replying. first of all i have created a radon function
> of my own. i only wanted to use the radon transform function from the
> image processing toolbox.
> this is my simple code:
> "I = imread('fp2.jpg');
> I_gray = rgb2gray(I);
> theta = 0:180;
> [R xp] = radon(I,theta);"
>
> and this is the error reported:
> "??? Attempt to execute SCRIPT radon as a function.
>
> Error in ==> radon at 4
> [R xp] = radon(I,theta);"

This line is NOT calling the Image Processing Toolbox RADON function. This
is trying to call _your script_ radon.m, in which these four lines of code
are located, with input arguments. Attempting to execute a SCRIPT (an
M-file that doesn't start with a function declaration line, like your
radon.m) as though it were a FUNCTION is not allowed. This is the reason
for the error message. Change the name of your script; call it "myradon.m"
or something similar.

--
Steve Lord
slord@mathworks.com

Subject: Attempt to execute script radon as a function

From: naaz911@gmail.com

Date: 29 Sep, 2006 09:39:05

Message: 17 of 24


Peter Boettcher wrote:
> prayag.narula@gmail.com writes:
>
> > Hi Guys,
> >
> > @Rune
> > I did find another file with the named radon.m and renamed it. so now i
> > had both radon.m renamed as radon1.m and also i changed the function
> > call in the source code. But to no avail. The compiler says it cannot
> > find radon1.m . Can u please suggest what else I might try.
>
> I'm not sure what you are renaming. The radon.m that ships with
> MATLAB should not be renamed. If you are trying to call that radon.m,
> then don't change that call either. In that case, just rename your
> OTHER radon.m to randon.m.bak or something to get it out the way
> entirely.
>
> If you are trying to create and call your own function, and you don't
> want to involve MATLAB's radon.m at all, then call yours my_radon.m,
> be sure the function name on the inside is the same, and call it the
> same way. If THIS doesn't work, post back again with details, since
> it will have nothing to do with namespace confusion.
>
> --
> Peter Boettcher <boettcher@ll.mit.edu>
> MIT Lincoln Laboratory
> MATLAB FAQ: http://www.mit.edu/~pwb/cssm/


well all you guys......thanks a lot for helping me.....and i am sorry
but i totally made a fool out of myself..........

all you guys were saying the same thing again and again thati s to
rename any other file called radon.m..........and i somehow was all the
time ignoring the file 'radon.m' in my workspace.

Peter, Steve, Michael, Rune........all of you, i apologize for my
mistake. i wasted a lot of your time. i am sorry.

naaz.

Subject: Attempt to execute script radon as a function

From: Steve Eddins

Date: 29 Sep, 2006 13:09:21

Message: 18 of 24

naaz911@gmail.com wrote:

> well all you guys......thanks a lot for helping me.....and i am sorry
> but i totally made a fool out of myself..........
>
> all you guys were saying the same thing again and again thati s to
> rename any other file called radon.m..........and i somehow was all the
> time ignoring the file 'radon.m' in my workspace.
>
> Peter, Steve, Michael, Rune........all of you, i apologize for my
> mistake. i wasted a lot of your time. i am sorry.
>
> naaz.
>

naaz,

No problem at all. People regularly trip up over this issue.
Experienced MATLAB users recognize the error message, which is why
several newsgroup regulars jumped in so quickly with the diagnosis and
solution.

This thread has prompted me to think about this problem a little bit
more. It's possible that MATLAB could have been more helpful to you in
this situation. For example, maybe the error message could have been
more specific, guiding you about the possible cause of the error
condition as well as the fix.

I'm going to enter an enhancement request for the core language team to
  think about it.

--
Steve Eddins
http://blogs.mathworks.com/steve

Subject: Attempt to execute script radon as a function

From: naaz911@gmail.com

Date: 30 Sep, 2006 08:19:45

Message: 19 of 24


Steve Eddins wrote:
> naaz911@gmail.com wrote:
>
> > well all you guys......thanks a lot for helping me.....and i am sorry
> > but i totally made a fool out of myself..........
> >
> > all you guys were saying the same thing again and again thati s to
> > rename any other file called radon.m..........and i somehow was all the
> > time ignoring the file 'radon.m' in my workspace.
> >
> > Peter, Steve, Michael, Rune........all of you, i apologize for my
> > mistake. i wasted a lot of your time. i am sorry.
> >
> > naaz.
> >
>
> naaz,
>
> No problem at all. People regularly trip up over this issue.
> Experienced MATLAB users recognize the error message, which is why
> several newsgroup regulars jumped in so quickly with the diagnosis and
> solution.
>
> This thread has prompted me to think about this problem a little bit
> more. It's possible that MATLAB could have been more helpful to you in
> this situation. For example, maybe the error message could have been
> more specific, guiding you about the possible cause of the error
> condition as well as the fix.
>
> I'm going to enter an enhancement request for the core language team to
> think about it.
>
> --
> Steve Eddins
> http://blogs.mathworks.com/steve
hello Steven........
oh my god i didnt realize you were Steven Eddins.......
i visit your blog regularly.........
it has helped me so much in my project that i am doing......i want to
personally thank you.
the examples you discuss are great and have increased my understanding
of image processing.
well so can i take this opportunity to understand the concept of
directional images?
and yes i am not able to grasp masking.

thanks again....
naaz.

Subject: Attempt to execute script radon as a function

From: Steve Eddins

Date: 30 Sep, 2006 20:41:12

Message: 20 of 24

naaz911@gmail.com wrote:
> well so can i take this opportunity to understand the concept of
> directional images?
> and yes i am not able to grasp masking.

Hi naaz,

I'm glad you are finding my blog helpful. I don't think I understand
either of your questions, so why don't you send me e-mail with more
details. Perhaps they'll inspire another blog post.

--
Steve Eddins
http://blogs.mathworks.com/steve

Subject: Attempt to execute script radon as a function

From: Steve Eddins

Date: 2 Oct, 2006 15:31:09

Message: 21 of 24

Steve Eddins wrote:
> [snipped discussion about "attempt to execute script as function"]
> This thread has prompted me to think about this problem a little bit
> more. It's possible that MATLAB could have been more helpful to you in
> this situation. For example, maybe the error message could have been
> more specific, guiding you about the possible cause of the error
> condition as well as the fix.
>
> I'm going to enter an enhancement request for the core language team to
> think about it.
>

The day after I entered this as an enhancement request, the request was
closed with the explanation that the work had already been completed in
MATLAB R2006b, which was just released last month.

When you shadow a function with a script and then to try to run the
function, the new version of MATLAB tells you the full path of the
script it tried to run. Hopefully this will give users more of a clue
about the source of the problem and how to fix it.

It turns out this problem was on our "tech support hot list."

:-)

--
Steve Eddins
http://blogs.mathworks.com/steve

Subject: Attempt to execute script radon as a function

From: fasdf asdfa

Date: 10 Oct, 2006 23:20:19

Message: 22 of 24

<http://www.ufluids.net/>

Particapate in this program based on a NASA grant.

What is Fluids?
Fluids project is a massively distributed computer simulation of
two-phase fluid behavior in microgravity and microfluidics problems.
Our goal is to design better satellite propellant management devices
and address two-phase flow in microchannel and MEMS devices.
Voluntary collaboration of individual computer users, like you, can
participate by donating idle computer time using the BOINC software.

It is safe, easy, and requires no mainatence just install and run.
Based on the instructions:
 <http://www.ufluids.net/instructions.php>

Subject: Attempt to execute script radon as a function

From: BHASKAR

Date: 17 Oct, 2006 09:23:54

Message: 23 of 24

hai
 Rune Allnor
   i want some information about matlab i am doing M.TECH(Remote
sensing) in india my project image processing useing of matlab
software.

                         i don't no about matlab please send me any
information.

Subject: Attempt to execute script radon as a function

From: vamsi bethapudy

Date: 17 Nov, 2009 15:54:04

Message: 24 of 24

"Rune Allnor" <allnor@tele.ntnu.no> wrote in message <1159510070.692077.121520@i42g2000cwa.googlegroups.com>...
>
> prayag.nar...@gmail.com skrev:
> > Hi there,
> >
> > I am a novice Matlab user. I am using Matlab 7.0 (R 14) for an image
> > processing job and am facing a curious problem. I am trying to use
> > Radon function which is a part of image processing toolbox. I am
> > getting an error which goes like
> >
> > "Attempt to execute script radon as a function in line number..."
>
> There is another file in your matlab path called radon.m. You have
> to find that file and rename it.
>
> Rune
>
Thank You very much
Your post was very helpful and immediately resolved a problem I was having.

Tags for this Thread

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.

rssFeed for this Thread

Contact us at files@mathworks.com