Questions tagged [octave-gui]

80 questions
1
vote
1 answer

How do you run Octave in Jupyter?

I want to run Octave in JupyterLab on a M1 Macbook. I have installed JupyterLab using pip and Octave-6.3.0-beta1.dmg file as per the prerequisites. I have also installed Octave kernel using pip install octave_kernel --user. Now I am somewhat stuck.…
Atiq
  • 11
  • 1
1
vote
1 answer

How to know if Octave (GUI) is busy/running

It is a simple issue, but unfortunately I couldn't find the answer in any previous question. Currently, I am using Octave-6.4.0 (GUI) for simulating simple models, although I am more used to work with Matlab. Therefore, I found it really useful that…
1
vote
1 answer

Pass and read custom argument to an octave script from powershell/batch

I would like to know if it possible to pass directly a custom argument when executing an octave script from Powershell/batch in general. Lets make an example: $octaveExePath = "C:\Octave\Octave-7.1.0\mingw64\bin\octave-cli.exe" # Executing the…
Gam
  • 318
  • 2
  • 9
1
vote
1 answer

construct a matrix with empty string in octave and later fill it with uneven number of characters in each row

I have a working piece of code in MATLAB empty_string = ""; bag = repmat(empty_string, 4, 1); bag(2) = "second row"; bag(3) = "third"; However, I want to convert this to octave as MATLAB is a licensed version and everyone can't get access to…
scoobydoo
  • 121
  • 8
1
vote
1 answer

Using "tic" without "toc" in Octave

Quick background, Octave GUI version 6.2.0 takes at least 20-30 seconds to initialize on one computer, but 1-2 seconds on another computer running the same version and same OS. I wanted to figure out where the holdup was, so I used the tic and toc…
smcmi
  • 106
  • 8
1
vote
0 answers

Octave calling a function from another file

I am new to octave and would like to experiment with an octave-based library for class imbalance learning available here. After setting up the environment as described in the user guide (pp. 18), to use the algorithm FuzzyImb, one runs: >>…
yarinya
  • 11
  • 3
1
vote
1 answer

Octave: How to correctly make string as a condition?

I was trying the if test for the first time, well actually so does with function. Here's the script: function trial() I = input("f INPUT > Manually input frequency value? (yes/no):"); if I = "yes"; f = input("Please input the frequency…
1
vote
1 answer

How can I install Optimization package in Octave?

I tried to install the optim package in Octave. >> pkg install -forge optim C:/PROGRA~1/GNU: line 1: [Paths]: command not found C:/PROGRA~1/GNU: line 2: Octave/Octave-6.2.0/: No such file or directory C:/PROGRA~1/GNU: line 3:…
user366312
  • 16,949
  • 65
  • 235
  • 452
1
vote
3 answers

Call Argument into other function Octave GNU?

I'm using Octave GNU for GUI Excel data. I want to ask you guys how can I call defined argument in another function. Here is my code. %%First Function = pushbutton_Callback function pushbutton_Callback(hObject, eventdata, handles) fileName =…
Heewonny
  • 25
  • 6
1
vote
2 answers

How can I get Octave GUI to load/read .m files correctly in editor and console?

I am taking a class on using Octave for machine learning algorithms, and as part of the assignments, they provide a series of .m files to build upon with our own code as well as to run for submission credit through the auto-grader. My problem is…
Miss E
  • 21
  • 3
1
vote
2 answers

How to delete past working directories in Octave GUI?

Does anyone know how to delete those past working directories in Octave GUI? They are very annoying and useless.
1
vote
1 answer

How do I plot this simple thing correctly in Octave?

I am a student trying to learn how to use Octave and I need help with plotting this thing right here the function I want to plot The code looks like this: x2 = 0:0.1:50; y2 = power((1+(2.*x2/(exp(0.5.*x2)+(x2.^2)))), 0.5); plot(x2, y2, '-b'); It…
1
vote
1 answer

there is an error message like "error: parse error near line" every time i try to run this code and i don't know what to do?

function [theta, J_history] = gradientDescent(X, y, theta, alpha, num_iters) %GRADIENTDESCENT Performs gradient descent to learn theta % theta = GRADIENTDESCENT(X, y, theta, alpha, num_iters) updates theta by % taking num_iters gradient steps…
1
vote
1 answer

Octave hide part of subplot when position property is modified

I'm using Octave to make a group of subplots, but the first titles are overlapping. clf; x = 0:1; for n = 1:13 sPlot = subplot (5,3,n, "align"); #subplotPos = get(sPlot, 'position'); #subplotPos .*= [1 1.2 1 1]; #set(sPlot, 'position',…
gvd
  • 1,482
  • 6
  • 32
  • 58
1
vote
0 answers

Octave GUI: right-click and edit function in a script file

In the Editor window of Octave GUI, if I right click on a function (say, f1) in an expression where it is called, and "Edit f1", function file f1.m opens. But if my function (now plot_color_marker_ranges) is defined in a script file instead of a…