From: Michael Kummer on 16 Jul 2010 02:57 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 16 Jul 2010 04:09 "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 16 Jul 2010 04:54 "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 16 Jul 2010 10:07 "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
|
Pages: 1 Prev: reassigning values of elements in matrix Next: Curve Detection and Fitting |