Questions tagged [octave-gui]

80 questions
0
votes
0 answers

Is there any way of runnning a line of code in octave without highlighting it?

In Rstudio you can run the code of the current line by pressing Ctrl+Enter. In octave (I'm using 8.3.0) you can do something similar by highlighting the text and then press F9, but is there a way to do this in a single button instead of having to…
0
votes
0 answers

How to enable automatic closure of brackets in GNU Octave?

I want to enable automatic bracket closure in my GNU Octave editor window. In other words when I type start of bracket ( , the editor must put a closing bracket ) automatically and put my cursor between both the brackets I tried looking for options…
dgor
  • 704
  • 6
  • 19
0
votes
0 answers

Error when using the polar function in Octave: Too many inputs

When I try to plot using polar, the following error is returned: polar (0:0.1:10*pi, 0:0.1:10*pi); error: line: function called with too many inputs error: called from line polar>__update_polar_grid__ at line 368 column 3 polar at line…
zaiatg
  • 1
0
votes
1 answer

Octave : How to use a function of a COM interface that returns multiple values?

In Matlab you can use AxtiveX-objects that return multiple values. Here's an example code: pkg load windows excel = actxserver('Excel.Application'); workbook = excel.Workbooks.Open('E:\Temp\del\a.xlsx'); worksheet =…
ralfiii
  • 584
  • 4
  • 13
0
votes
1 answer

Annotating local minimum in Octave

I am new to Octave so please bear with me.. I have a dataset with x and y values that I plot as a line. Then, I want to annotate selected minima by choosing a range and finding within this range the local minimum. How do I set a range within the x…
dimidola
  • 3
  • 2
0
votes
0 answers

GNU Octave - legend() with boxplot()

I am having problems plotting two or more boxes with boxplot() and using legend(). In short: boxplot() seems to have seven entries (the box itself, the quartils, the median and so on...). So, when handing over two strings as entries to legend(), the…
Jürgen O.
  • 23
  • 4
0
votes
1 answer

Howto hide the text (and its lenght) that are editing?

I want write password of the root to the shell, but without move the cursor when i write it. prompt = {"Senha de Administrador: "}; your textdefaults = {""}; your text`rowscols = [1,25]; your textsenha_root = inputdlg (prompt, "para Alterar…
armando
  • 1
  • 1
0
votes
1 answer

Flow rate is not calculated and displayed on the message box

When I run the following script, Octave only calculates and shows velocity in the message box. total=0 choice=menu(' Welcome to Group 8 Open Channel Hydraulic Calculator click continue to start',' continue'); a=menu(' Please choose unit system', 'SI…
0
votes
0 answers

I have problem in installing Octave package

I need to use I/O package in octave. Although I have installed the package, when running the program there is an error saying the package is not installed. By the way I can see the package name in installed package list,too. I installed package for…
0
votes
0 answers

combining octave sets with repeating

how can I combine two sets in octave with repeating? I mean that if there are value that exists two times or more it will be in the new set with the same amount? I tried (union) function but it gave me the values with out repeating
0
votes
1 answer

OCTAVE: Invalid Call To Script

I am very new to coding and to using Octave, and I have been having this issue with my code. Essentially, I am trying to code a program that takes an input number and executes the idea of the Collatz Conjecture. It works partially, I still need to…
ollie
  • 1
  • 2
0
votes
1 answer

Output of a double value and differencing with colours

I have a CSV file in which one column consists of values (class: double) named INV_OutputTorque (89155×1). There are values from -200
Dr. X
  • 1
  • 1
0
votes
1 answer

Octave Treats a 5000*10 Matrix As a 16*4 Matrix

I'm trying to use Octave to submit an assignment written in MATLAB.h_theta2 matrix is a 5000*10 matrix in MATLAB (please see the attached screenshot) and the code works fine in MATLAB. But when I try to submit the assignment in Octave it returns the…
Saba
  • 61
  • 2
  • 9
0
votes
0 answers

Octave script falling into error when processing data with sampling frequency above 50kS/s

I'm working with an Octave script to process data files with high sample rates (up to 200kS/s collected over 3 minutes). The code runs into issues when processing any files with a sample rate above 50kS/s, regardless of size or number of samples but…
0
votes
1 answer

GNU Octave Script Help - ODE

I'm trying to solve the following ODE: where R(T) is defined as: This is my not so great attempt at using Octave: 1; function xdot = f(t, T) xdot = 987 * ( 0.0000696 * ( 1 + 0.0038 * ( T(t) - 25 ))) - ( 0.0168 * (T(t)-25 )) - (( 3.25 * 10 ^…