diff -r 605729cc5bbf doc/faq/OctaveFAQ.texi --- a/doc/faq/OctaveFAQ.texi Wed Nov 02 11:17:01 2011 -0700 +++ b/doc/faq/OctaveFAQ.texi Wed Nov 02 21:54:39 2011 +0100 @@ -596,6 +596,10 @@ To subscribe to the list, go to @url{http://www.octave.org/archive.html} and follow the link to the subscription page for the list. +To unsubscribe, go to the subscription page (as an example, address@hidden://mailman.cae.wisc.edu/listinfo/help-octave}) and at the very +end you find ``To unsubscribe from ...''. + @strong{Please do not} send requests to be added or removed from the mailing list, or other administrative trivia to the list itself. @@ -739,6 +743,19 @@ questions (preferably with answers!) @itemize @bullet + address@hidden +I downloaded the tar.gz and the tar.bz2 files but I can't get Octave to +open on Windows. + +That's the source code. There are several Windows programs that can +uncompress those files, but then you would have to compile the source +code yourself. + +What you seek is a Windows binary. You can find one here: + address@hidden://octave.sourceforge.net} + @item Octave takes a long time to find symbols. @@ -778,6 +795,63 @@ @code{yum install octave-devel} @end itemize + address@hidden +I have this bug in a specific function, ... + +Try running: + address@hidden unload all} + +If that unloads your function (i.e. it is not available anymore), it's +not a GNU Octave function. It is probably part of OctaveForge, so you +better file a bug report at that mailing list. + address@hidden +I'm writing an octave function to load a 3GB file and I'm having strange +problems with this on my 32-bit system. + +The 32-bit version can't read files larger than about 2GB because Octave +uses file offsets that are integers. + address@hidden +Help! I'm getting error: memory exhausted or requested size too large for range of Octave's index type + +You might be trying to create an array greater than the biggest +indexable memory area on your platform. For instance, on 32-bit +computers, it is impossible to index more than about 4295 million +elements. Notice that limit is true even if you have enough ram! + address@hidden +I'm running Octave 3.2.4 on Windows and plotting doesn't work! + +Try removing oct2mat. Unload oct2mat if currently loaded: + address@hidden unload oct2mat} + +And if that solves you problem, you might want to make Octave remember not to load oct2mat at startup: + address@hidden rebuild -noauto oct2mat} + address@hidden Octave miscalculates simple arithmetics. For example Octave doesn't think 3 * 0.1 is equal 0.3. + +Internally, computers use a format (binary floating-point) that cannot +accurately represent a number like 0.1, 0.2 or 0.3 at all. + +When the code is interpreted, your ``0.1'' is already rounded to the +nearest number in that format, which results in a small rounding error +even before the calculation happens. + +Why do computers use such a stupid system, you might ask? It is not +stupid, just different. Decimal numbers cannot accurately represent a +number like 1/3, so you have to round to something like 0.33 - and you +do not expect 0.33 + 0.33 + 0.33 to add up to 1, either. + +Computers use binary numbers because they are faster at dealing with +those, and because for most calculations, a tiny error in the 17th +decimal place does not matter at all since the numbers you work with are +not round (or that precise) anyway. + @end itemize @node Using Octave @@ -786,6 +860,8 @@ @menu * How do I set the number of displayed decimals?:: * How does Octave solve linear systems?:: +* How do I print things before the calculation is finished?:: +* How do I print the datatype of a variable?:: @end menu @cindex Tips and tricks @@ -817,6 +893,27 @@ Sections ``Techniques Used for Linear Algebra'' and ``Linear Algebra on Sparse Matrices'' from the manual describe this procedure. address@hidden How do I print things before the calculation is finished? address@hidden How do I print things before the calculation is finished? + +I'm running some m-file that prints things as it moves along, but I +don't get to see any of that until the m-file is finished. How do I make +the output show up immediately? + +GNU Octave by default buffers all output and sends them to a pager. If +you want to disable paging try calling @code{more off} or address@hidden (0)}. + +See also @code{http://www.gnu.org/software/octave/doc/interpreter/Paging-Screen-Output.html}. + address@hidden How do I print the datatype of a variable? address@hidden How do I print the datatype of a variable? + +Use @code{class (x)} to determine the value's class, which is probably +what you wanted to do. @code{typeinfo (x)} is used to debug the +interpreter and might return distinctions that are important to the +interpreter but not so much to the Octave language user. + @node @sc{Matlab} compatibility @chapter Porting programs from @sc{Matlab} to Octave