[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ASCII till xyz with Octave - problem with cellfun
From: |
Ben Abbott |
Subject: |
Re: ASCII till xyz with Octave - problem with cellfun |
Date: |
Sat, 16 Mar 2013 09:33:21 -0400 |
On Mar 16, 2013, at 3:29 AM, wnint wrote:
> Hi, I'm trying to do a conversion from ASCII to xyz coordinates. Found a
> MATLAB program that solves this:
>
> http://www.mathworks.com/matlabcentral/fileexchange/21785-ascii2xyz
>
> The program works fine in MATLAB, but I would like to use Octave instead.
> When trying the same program in Octave I run into problems. I think the
> problem is in the part of the code I've posted below. I'm using version
> 3.4.3. Can any body see what the problem might be?
Please don't copy code from the Mathworks website here. Its a violation of
their terms of use. You're free to take the risk yourself, but please don't
implicate others.
> *Error message:
> *
> error: cellfun: unrecognized parameter uni
> error: evaluating argument list element number 1
> error: called from:
> error: C:\...\program.m at line ...
The error message is sufficient to determine what is wrong. You've called
cellfun() using syntax equivalent to ...
cellfun (@fun, cellarray1, cellarray2, ..., "uni", val)
The "uni" argument is short of "UniformOutput". You can fix the error in
Octave by using the full parameter name.
Ben