Tag Info

Hot answers tagged

8

This isn't a bug with either, but due to the way computers perform floating point operations. There is a limited amount of precision any computer can operate with, and so you will sometimes see anomalies like this. While it is possible to write software that can handle this, it would take a lot more computation time and drastically increase memory ...


6

Use the function system(<command>) to call a shell command from Octave. Replace <command> with the command you want to execute. (Note that MATLAB allows a shell command to be executed by prefixing it with an exclamation mark !, but Octave does not support this syntax. See this Wikibooks page for more information.)


6

From imagemagick: animate -pause *.jpg You can also use mplayer: mplayer mf://*.jpg -mf fps=10


3

If you just need the last value calculated, the variable ans will do the job. If you need it after several other calculations, you need to use the command run_history linenumber: octave:9> 3/log(2) ans = 4.3281 octave:10> 42 ans = 42 octave:11> 37 ans = 37 octave:12> run_history 9 ans = 4.3281 Then that value is in the ans variable and ...


3

Since it is possible to program Emacs to do just about anything, I just adjust or fix whatever I need to and rarely look for the rationale of default settings. (add-hook 'octave-mode-hook (lambda () (setq indent-tabs-mode t) (setq tab-stop-list (number-sequence 2 200 2)) (setq tab-width 2) (setq indent-line-function 'insert-tab) ))


2

Just end your filename with svg instead of png and octave, at least, will do the right thing.


2

In Terminal: sudo port uninstall octave


2

The long answer is, it's possible, but you'll have to a) program it yourself, or b) get someone to program it for you. This method of writing fractional base-2 just isn't used in computing. Programming a function to convert this representation of fractional binary numbers into standard IEEE754 double-precision floating point binary isn't impossible, so if ...


2

Nan means Not a Number You operation produced an undefined result. bin2dec(s) returns the decimal representation of the binary number in s. But you passed a decimal number. You probably wanted to use dec2bin()


2

You could check whether Octave’s built-in variable OCTAVE_VERSION is set.


2

The fix is here, in Octave 3.4.0 GNU Octave Repository - 2011-04-21 binary of Octave 3.4.0 at SourceForge.net


1

Yes. Pick a non system directory and unzip everything. It is true for any GUI for Octave such as Xoctave,QToctave, etc.


1

It depends on your version of gcc, your hardware, your distribution, and a lot of other things. Typically, your Linux distribution provider would have done that research for you and used those options when building your package. Distributions, however, try to make things work with most hardware and user expectations. I find the most customization without ...


1

I would use Matlab, but I guess that a little bit to scientific and might not be available to you. Octave seems to be a open source similar to Matlab. The plot itself would be the easiest plot(x,y) having all abilities to zoom and pan. The data import wizard should also allow you to import cvs type of files if you just change your output a little bit. x ...


1

After much web-searching and manipulation of ~/.inputrc, I accidentally found that C-e in vi-command mode actually does the trick and executes emacs-editing-mode. This is discussed in this posting, but with regards to bash, they must be related somehow, but I can't find how by looking in the octave sources. Knowing what to look for also allowed me to find, ...


1

Had the same problem. I think the issue is that I hadn't installed gnuplot correctly. I got around this by downloading Maxima, which has another binary installation of gnuplot. http://sourceforge.net/projects/maxima/files/Maxima-MacOS/ Once this was installed, I had to make sure that the environment was set to x11, because aquaterm was also giving me ...


1

Those functions only work with integers.


1

According to Octave's manual, you can open and read binary floating point data in VAX D and VAX G floating format, but 'Conversions are currently only supported for "ieee-be" and "ieee-le" formats.'


1

Update: octave:1> 729/4^3 ans = 11.391 octave:2> format long octave:3> 729/4^3 ans = 11.3906250000000 octave:4> Have you tried the "format long" command? I'm installing octave right now. I used to use it and Matlab while I was in college.


1

Gwenview, which is available in Ubuntu 9.10, support that. You can start a slideshow of any directory/images. Its default pause between images is 5 seconds, but you can configure it as you want. You can also step forward by pressing space or backward by pressing backspace.


1

The error message is shown because Octave is expecting PAGER to be set to a program that can be run and given the text as 'stdin'. The /dev/null file is obviously not a program, and it does not have the "executable" permission bot; the latter is what causes the permission error. Try /usr/bin/cat or /usr/bin/true instead.


1

Is your version of homebrew updated? Make sure to run brew doctor and brew update. I did a quick search using brew search octave and got this: homebrew/science/octave So it exists in the formulas. You can find it here on Github.


1

The short answer is you can't. If I read your example right and 10.1 is supposed to be a binary floating point number?, then bin2dec is not really appropriate unless your number are all strings. I'm unaware of the concept of 'floating point binary' in octave. I think you'll have to manage the mantissa & exponent manually yourself if you want to do ...



Only top voted, non community-wiki answers of a minimum length are eligible