octave

How to make Octave use “gnuplot” instead of “fltk” by default?

╄→尐↘猪︶ㄣ 提交于 2019-12-02 20:44:12
I'm using Octave 3.8 on Ubuntu 13.10 and "fltk" for graphics is not working well. So I always switch to "gnuplot" by commanding: graphics_toolkit("gnuplot") How can I configure Octave to use "gnuplot" by default? You add the command to your .octaverc file. For more info: http://www.gnu.org/software/octave/doc/interpreter/Startup-Files.html You can add that line to the .octaverc file. If the files does not exist, just create it on your home directory. This file is executed every time you start Octave unless you pass the -f or --norc option. You can add many other things to you .octaverc file.

Octave Fontconfig error

徘徊边缘 提交于 2019-12-02 20:31:20
I installed Octave via Homebrew using the instructions given here . When I try to generate a plot, I get the following message: Fontconfig error: Cannot load default config file warning: could not match any font: *-normal-normal-10 warning: called from axes at line 66 column 10 gca at line 58 column 9 newplot at line 148 column 8 surf at line 70 column 9 sombrero at line 65 column 5 I then get a long series of the following messages: warning: ft_render: unable to load appropriate font warning: could not match any font: *-normal-normal-10 Usually the plot appears once, but if I call it again

SciPy instead of GNU Octave

你离开我真会死。 提交于 2019-12-02 19:33:28
For my lab experiments I write small programs to help with the data analysis. I usually just need basic calculations, means, standard deviation, arbitrary weighted function fitting and plots with errorbars and fitted function. With GNU Octave, I can do this. I started to read more into the language of it and I start to not like its inconsistencies and that I have to learn yet another language. So I am thinking about using Python, which I am using for a while now, with SciPy and NumPy. Can I do those things with Python easily or is it more overhead to get the general purpose language Python to

How to access the diagonals of a matrix and change the value?

隐身守侯 提交于 2019-12-02 18:07:39
问题 I have 8x8 matrix where I have 15 diagonals. upper left corner “diagonal 1” and the lower right corner “diagonal 15”. I want to zero out the specific sets of diagonals like {9, 10, 11, 12, 13, 14, 15} or {5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15}. Anyone please give me solution? 回答1: I believe you can use: M = M - diag(diag(M,k),k); where k is 0 for the main diagonal, negative for the lower diagonals (up to -7), positive for the upper diagonals (up to 7). EDIT: My bad, this only zero out one of

eror: rgb2gray undefined in Octave 4.2.2

可紊 提交于 2019-12-02 17:35:37
问题 I am new to Octave platform and am trying the image tool for image processing version-2.8.0. I have installed this tool using 'pkg install -forge image'. It installed perfectly and even contains in the package list. Now when i try to convert a colored image into gray scale it gives me following error. warning: the 'rgb2gray' function belongs to the image package from Octave Forge but has not yet been implemented. Please read http://www.octave.org/missing.html to learn how you can contribute

Mex file building with Octave (issue with wrappers)

人走茶凉 提交于 2019-12-02 17:28:14
问题 I am currently porting some code from Matlab to Octave. Some of the functions of the Matlab code use the Piotr's Computer Vision Matlab Toolbox (here) that includes some mex files. In Matlab, everything is working like a charm but when I run my codes with Octave, it throws this error: error: 'imResampleMex' undefined near line 50 column 5 However all the internal paths within the toolbox should be good. I figured out that the way Matlab and Octave handle mex files is different and tried to

Zoom out in Octave / gnuplot

只谈情不闲聊 提交于 2019-12-02 15:16:41
I use Octave with gnuplot under Windows. I can zoom in using the right mouse button. But how can I zoom out from the UI? I found this post on Nabble . Pressing p takes you to the previous zoom level, n to the next level, and u unzooms. I pressed h in a gnuplot window outside of Octave and got this command list: 2x<B1> print coordinates to clipboard using `clipboardformat` (see keys '3', '4') <B2> annotate the graph using `mouseformat` (see keys '1', '2') or draw labels if `set mouse labels is on` <Ctrl-B2> remove label close to pointer if `set mouse labels` is on <B3> mark zoom region (only

How should I do rapid GUI development for R and Octave methods (possibly with Python)?

僤鯓⒐⒋嵵緔 提交于 2019-12-02 14:19:04
We are a medium-sized academic research lab whose main outputs are new statistical methods for analyzing large datasets. We generally develop in R and MATLAB/Octave. We would like to expand the reach of our work by building simple, wizard-style user interfaces to access our methods, either web-apps like RNAfold or stand-alone applications to analyze private data. Ideally, we would like the interfaces to do some data checking, to only use FOSS, to run in Mac and Windows environments, and to be able to generate simple charts and graphs that can be output as figures suitable for publication. Also

Converting image using matlab / octave from rgb to hsv back to rgb

有些话、适合烂在心里 提交于 2019-12-02 12:46:34
I'm trying to convert a color image from rgb to hsv (make changes) then back to rgb. As a test I made this code just to test how to go from rgb to hsv back to rgb but when I view the image it just shows up as black. What am I missing? *PS I'm using octave 3.8.1 which works like matlab Here are the octave 3.8.1 packages I have loaded: >>> pkg list Package Name | Version | Installation directory --------------+---------+----------------------- control *| 2.6.2 | /usr/share/octave/packages/control-2.6.2 general *| 1.3.4 | /usr/share/octave/packages/general-1.3.4 geometry *| 1.7.0 | /usr/share

How to access the diagonals of a matrix and change the value?

…衆ロ難τιáo~ 提交于 2019-12-02 11:40:18
I have 8x8 matrix where I have 15 diagonals. upper left corner “diagonal 1” and the lower right corner “diagonal 15”. I want to zero out the specific sets of diagonals like {9, 10, 11, 12, 13, 14, 15} or {5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15}. Anyone please give me solution? I believe you can use: M = M - diag(diag(M,k),k); where k is 0 for the main diagonal, negative for the lower diagonals (up to -7), positive for the upper diagonals (up to 7). EDIT: My bad, this only zero out one of the diagonal of your choice. You can repeat the process for all the diagonals you want to zero out but that