octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #44119] image package: imformats missing prett


From: H. G.
Subject: [Octave-bug-tracker] [bug #44119] image package: imformats missing pretty print
Date: Fri, 30 Jan 2015 21:51:43 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:35.0) Gecko/20100101 Firefox/35.0

Follow-up Comment #4, bug #44119 (project octave):

I have had a look what Matlab does on this case (a call to imformats without
any input or output arguments). And it outputs a huge text table with all
existing information.

If we try to do this (I did) this results in a table that is much wider then
usual computer screens, so it is not at all "pretty" any more.

So I would suggest for this case, to only output a simple list of the
supported file format extensions.

To achive this, we could substitute todays line 81 of fileformats.m with the
following code:


disp('The following file format extensions are currently supported:');
    form = formats;
    for m=1:length(form)
       if(length(form(m).ext) >=2)  % if more then one file format goes onto a
line
           for n = 1:length(form(m).ext)-1
               form(m).ext{n} = [form(m).ext{n}, ', ']; % insert commas
inbetween them
           endfor
       endif
       erg(m,1:length(cell2mat(form(m).ext)))=cell2mat(form(m).ext);         

    endfor
    disp(erg)


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?44119>

_______________________________________________
  Nachricht gesendet von/durch Savannah
  http://savannah.gnu.org/




reply via email to

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