From: Michael Kummer on
Hello!

I googled the following Error:

??? Undefined function or method 'ctranspose' for input arguments of type 'function_handle'.

The only page I could find with the same error was this: http://www.mathworks.de/matlabcentral/fileexchange/22223-world-time-zones. But without any explanation.

I use MATLAB R2010a. Is this a known issue or is there a problem with the mablab-program (should be ok) I want to use?

Thanks,

Michael
From: us on
"Michael Kummer" <Michael.Kummer(a)med.uni-jena.de> wrote in message <i1ovs2$k6o$1(a)fred.mathworks.com>...
> Hello!
>
> I googled the following Error:
>
> ??? Undefined function or method 'ctranspose' for input arguments of type 'function_handle'.
>
> The only page I could find with the same error was this: http://www.mathworks.de/matlabcentral/fileexchange/22223-world-time-zones. But without any explanation.
>
> I use MATLAB R2010a. Is this a known issue or is there a problem with the mablab-program (should be ok) I want to use?
>
> Thanks,
>
> Michael

well...
a hint:
- see what it does...

help ctranspose;
% then
m=magic(3)
m=m' % <- works
fh=@(x) x
fh=fh' % <- will - obviously - yield the error as we now understand...

us
From: Michael on
"us " <us(a)neurol.unizh.ch> wrote in message <i1p432$j86$1(a)fred.mathworks.com>...
> "Michael Kummer" <Michael.Kummer(a)med.uni-jena.de> wrote in message <i1ovs2$k6o$1(a)fred.mathworks.com>...
> > Hello!
> >
> > I googled the following Error:
> >
> > ??? Undefined function or method 'ctranspose' for input arguments of type 'function_handle'.
> >
> > The only page I could find with the same error was this: http://www.mathworks.de/matlabcentral/fileexchange/22223-world-time-zones. But without any explanation.
> >
> > I use MATLAB R2010a. Is this a known issue or is there a problem with the mablab-program (should be ok) I want to use?
> >
> > Thanks,
> >
> > Michael
>
> well...
> a hint:
> - see what it does...
>
> help ctranspose;
> % then
> m=magic(3)
> m=m' % <- works
> fh=@(x) x
> fh=fh' % <- will - obviously - yield the error as we now understand...
>
> us

Well thanks but, this is what the error massage says... So your answer is, that this is a trivial problem - One cannot use fh for the ctranspose function. But the code is not mine and works on other systems! I thought it could be a version problem or a method, which cannot be found? Is this not possible?

Michael
From: Steven Lord on

"Michael " <Michael.Kummer(a)med.uni-jena.de> wrote in message
news:i1p6nd$37d$1(a)fred.mathworks.com...
> "us " <us(a)neurol.unizh.ch> wrote in message
> <i1p432$j86$1(a)fred.mathworks.com>...
>> "Michael Kummer" <Michael.Kummer(a)med.uni-jena.de> wrote in message
>> <i1ovs2$k6o$1(a)fred.mathworks.com>...
>> > Hello!
>> >
>> > I googled the following Error:
>> >
>> > ??? Undefined function or method 'ctranspose' for input arguments of
>> > type 'function_handle'.
>> >
>> > The only page I could find with the same error was this:
>> > http://www.mathworks.de/matlabcentral/fileexchange/22223-world-time-zones.
>> > But without any explanation.
>> >
>> > I use MATLAB R2010a. Is this a known issue or is there a problem with
>> > the mablab-program (should be ok) I want to use? Thanks,
>> >
>> > Michael
>>
>> well...
>> a hint:
>> - see what it does...
>>
>> help ctranspose;
>> % then
>> m=magic(3)
>> m=m' % <- works
>> fh=@(x) x
>> fh=fh' % <- will - obviously - yield the error as we now
>> understand...
>>
>> us
>
> Well thanks but, this is what the error massage says... So your answer is,
> that this is a trivial problem - One cannot use fh for the ctranspose
> function.

Or to put it another way, you can't transpose a function handle. What you
CAN do is to transpose _the output returned by a function handle_, and
that's what I'm guessing you want to do.

m = magic(3)
fh = @(x) x
fh(m)' % transpose the result of fh(m), calling fh with m as input.

> But the code is not mine and works on other systems! I thought it could be
> a version problem or a method, which cannot be found? Is this not
> possible?

Transpose has never, as far as I'm aware, been defined for function handles.
My guess is that on the other systems, whoever is running the code
transposed the output of the function handle rather than trying to transpose
the function handle itself.

--
Steve Lord
slord(a)mathworks.com
comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ
To contact Technical Support use the Contact Us link on
http://www.mathworks.com