help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: alphabetical list of Octave functions


From: gOS
Subject: Re: alphabetical list of Octave functions
Date: Tue, 10 Jun 2008 11:59:12 -0700 (PDT)



John W. Eaton wrote:
> 
> On 10-Jun-2008, Brian Kirklin wrote:
> 
> | Do you have a suggestion on how to capture that output? The 2835 items 
> | couldn't be displayed in one terminal for me to just copy and paste the 
> | data out.
> 
> Just after I sent the message, I realized another way is
> 
>   x = completion_matches ("");
>   x(x==0) = "";
>   x(:,end+1) = "\n";
>   fid = fopen ("function-list", "w");
>   fprintf (fid, x');
>   fclose (fid);
> 
> It's a little messy because completion matches pads with ASCII nul and
> doesn't include newline characters.  Maybe there is a simpler way to
> do it.  You'll also need to strip the file names that are also
> possible completions, but those should all appear together at the end
> of the list.
> 
> jwe
> _______________________________________________
> Help-octave mailing list
> address@hidden
> https://www.cae.wisc.edu/mailman/listinfo/help-octave
> 
> 

That code almost worked, I found that this worked a little better.  

  x = completion_matches ("");  
  x(x==0) = "%";
  x(:,end+1) = "\n";
  fid = fopen ("test.txt", "w");
  fwrite (fid, x');
  fclose (fid);

Problems:

 x(x==0) = ""; drastically increased the size of the string and started
doing things I didn't understand. I just used find and replace all inside of
notepad++  to remove the %. I'm not entirely sure why your method didn't
work. Also, fprintf didn't record the data properly in windows, but fwrite
did. Again, not sure why, but I appreciate the help.

I'm now trying to narrow down the list by removing functions that are
directly related  to Octave only, simply because no one programming for my
company should be using something that won't be present in Matlab. I know I
won't be able to remove all of the functions from this list without some
amount of difficulty, but certain formatting exists from what I'm seeing. Is
it correct that functions which have the format __functionname__ are soley
octave functions?

I'll probably hunt down a list on octave_forge or something like that to
determine what if anything else is not present in Matlab. Help on this point
would help too.

Thanks again for the help. These boards have been very useful over my the
last few years of working with octave.
-- 
View this message in context: 
http://www.nabble.com/alphabetical-list-of-Octave-functions-tp17759919p17762303.html
Sent from the Octave - General mailing list archive at Nabble.com.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]