octave Questions
2
Solved
I get undefined variable/argument when trying to define my own random generator function.
Code:
function result = myrand(n, t, p, d)
a = 200 * t + p
big_rand = a * n
result = big_rand / 10**d
...
4
I'm running octave 3.8 with the gui in Ubuntu 14.04. I have an infinite loop somewhere in my program and it seems like the terminal doesn't respond to the typical keypresses to stop execution. (eg....
Posthumous asked 8/10, 2015 at 3:48
2
Solved
When using the octave-IDE, I can select between the command window and the editor, but not see both at the same time.
Therefore I can't immediatly see outputs from print statements in my scripts.
I...
Rampageous asked 2/5, 2021 at 21:46
4
Solved
Is there an equivalent of MATLAB's contains function in Octave? Or, is there a simpler solution than writing my own function in Octave to replicate this functionality? I am in the process of switch...
2
Solved
Code:
if (round(xw(1))>2) & (round(xw(2))>2) & (round(xw(1))<h-1) & (round(xw(2))<w-1)
W0 = img(round(xw(1))-2:round(xw(1))+2,round(xw(2))-2:round(xw(2))+2);
else
NA=1;
...
Robbinrobbins asked 2/8, 2017 at 12:40
0
I am working with Octave in the control package, and I want to take an array of transfer functions (initialized as follows) and just extract the diagonal elements of the matrix. Whenever I try to d...
Veradis asked 19/5, 2023 at 22:54
6
I would like to draw a 3D histogram (with gnuplot or octave) in order to represent my data.
lets say that I have a data file in the following form:
2 3 4
8 4 10
5 6 7
I'd like to draw nine col...
5
Solved
I have a set of frequency data with peaks to which I need to fit a Gaussian curve and then get the full width half maximum from. The FWHM part I can do, I already have a code for that but I'm havin...
Imbecilic asked 8/11, 2012 at 14:4
8
Solved
In Matlab you can draw a circle by just specifying the center and the radius like this:
R = 10;
Center = [5,8];
circle(Center,R,1000,'b-');
hold on
plot(Center(1),Center(2),'g.')
The same code f...
Demount asked 1/11, 2011 at 19:0
3
I need to make a .fig file that can be reopened in Matlab, but I am working in Octave. But apparently there is no saveas command in Octave. This is what I am trying:
octave:3> plot([1,2,3],[45,...
Dissected asked 13/2, 2012 at 22:45
4
I'm using Octave to write a script that plots a function at different time periods. I was hoping to create an animation of the plots in order to see the changes through time.
Is there a way to save...
4
Solved
Is there built-in functionality for this?
Okwu asked 22/11, 2011 at 3:26
3
Solved
Question is ternary operation valid as i am not able to find any document related to it online. And i also find out that ternary is not possible in MATLAB so any suggestion and answers will be appr...
Gooseherd asked 4/2, 2021 at 23:26
3
I am just install Octave 4.2.0 in Windows 10 and try to do some Machine Learning exercises. I notice that I can't paste the normal clipboard content to the Octave.
Does anyone else have this issu...
3
Solved
Maybe I'm spoiled by Python, but does Octave allows one to assign the values of variables directly from a vector? That is, doing something like
a,b,c=[5,6,7]
will result with a=5, b=6, c=7.
I ha...
Lasonde asked 28/3, 2012 at 13:20
3
Solved
I'm using Ubuntu system. To run MATLAB script at launch, I can type matlab -nodesktop -r "run ./my_program.m".
How can I achieve the same function on Octave, like octave --no-gui -some_command?
I...
5
Solved
Is there an alternative to the fminunc function (from octave/matlab) in python? I have a cost function for a binary classifier. Now I want to run gradient descent to get minimum value of theta. The...
Stink asked 14/9, 2013 at 10:54
6
Solved
I am trying to generate a certain amount of random uniform points inside a rectangle (I know the pair of coordinates for each corner).
Let our rectangle be
ABCD
My idea is:
Divide the rectangle...
2
I tried to install the octave kernel for jupyter using pip (as suggested here https://github.com/calysto/octave_kernel).
But I cannot choose the Octave kernel when creating a new notebook.
It work...
Doublehung asked 11/1, 2016 at 17:30
3
Solved
Is there a way to extend a vector by making it repeat itself?
>v = [1 2];
>v10 = v x 5; %x represents some function. Something like "1 2" x 5 in perl
Then v10 would be:
>v10
1 2 1 2 1...
3
I am trying to read a matrix from file in Octave but I just can't find a solution.
The input file is:
4
1 4 2 3
1 4 2 1
4 2 1 4
1 2 1 3
where 4 is the number of rows and columns. I want to be ab...
Cop asked 14/4, 2016 at 19:13
2
Solved
Need MATLAB/Octave dec2base functionality function with independent bits/digits calculation algorithm (within integer logic, with no divisions, using modular arithmetic).
Would be nice to have as w...
1
Solved
In Octave, format short g sets the numeric output format in the command window to 5 significant digits, and format long g to 15 digits. Is there a way to set it to a different number of digits diff...
2
Solved
I installed Octave on my macOS Sierra using Homebrew with the command
brew install octave
and everything installed fine.
When I run Octave, however, it prints version 4.2.1, but I do not get th...
Connotation asked 22/8, 2017 at 2:25
5
So, I'm trying to use oct2py on Windows, like so:
from oct2py import octave
That's literally the only code I need to reproduce the error.
When I execute this, I get OSError: Octave Executable n...
1 Next >
© 2022 - 2024 — McMap. All rights reserved.