Questions tagged [octave-gui]

80 questions
0
votes
0 answers

How to format the values of the output variable of a function as a matrix, given that an input is an matrix in Octave

I have a function: int = input("Introduce the intensity: ") wave = input("Introduce the wavelength: "); e = input("Introduce e: "); function [brighttemp] = brightness_temp_function(int, wave, e) A = 1.19 .* (10 .^ 8); B = 1.441 .* (10 .^ 4); …
itsduo
  • 1
  • 2
0
votes
1 answer

Octave out of bound error while trying to calculate mean value of a vector

I generated random values using following function : P = floor(6*rand(1,30)+1) Then, using T=find(P==5), I got values where outcome is 5 and stored them in T. The output was : T = 10 11 13 14 15 29 Now, I want to calculate the mean…
0
votes
1 answer

Dimensional error when i try to read month number from file

I'm new to Octave and I am trying to read the month number of a datetime values in order to do a equation with it. The problem is every time I try to read it I get the same dimensional error and i don't know why... Here is my code: clear clc pkg…
0
votes
0 answers

This code gives me a plot in Matlab but not in Octave

The code works fine and gives me the plot when I run it in Matlab but it doesn't give me any output in Octave, please help. (The code is for generating a 2D lattice and it should output a plot) function…
Tarun
  • 1
  • 2
0
votes
0 answers

Problem with initialization bim's ready example in Octave

On assignment, they gave me a step-by-step example from this article http://wiki.octave.org/Bim_package. The example was typed manually, without copy-paste.I already install this packages- fpl, bim,msh, image. Octave example: pkg load bim pkg load…
beginner
  • 183
  • 2
  • 12
0
votes
0 answers

Octave error (error: max_recursion_depth exceeded) how to fix it?

I have run the following code in the Octave (Octave-6.2.0 (Local) (GUI)) and the output is shown. I have made an error intentionally, but when I fix it, it does not recognize it. Even when I have copied and pasted the following code which does not…
Ali
  • 1
0
votes
0 answers

How do you close the Octave editor programmatically?

How do you close the GNU-Octave editor programmatically in Windows? Either the whole editor or a specific .m file being edited.
Felipe Jiménez
  • 453
  • 3
  • 9
0
votes
1 answer

The problem with the dimensions of a matrix when computing the least squares method

My previous topic in this area. Problem in solving algorithm polynomial regression,least squares method in Octave I decided not to change the main questions, but to create a new question for each problem. This time, the problem is as follows.I…
beginner
  • 183
  • 2
  • 12
0
votes
1 answer

How to set the environment decimal separator in Octave?

It is anyway to set decimal separator in Octave different from OS default locale for decimals. For example: normally I used point(.) for decimal separator like US locale, but sometimes I need to plot data that need to be presented with comma(,) as…
gvd
  • 1,482
  • 6
  • 32
  • 58
0
votes
1 answer

Using Octave to "Edit" notepad file instead of "Open" in Windows

I use Windows 10 and an .exe program (in-house code written by a colleague) that imports data from .txt files. Since 99% of my use of .txt files are for this program, I've changed the default Windows program so that this .exe file is run…
smcmi
  • 106
  • 8
0
votes
1 answer

Trying to find index of minimum value in a list of vars in Octave

I have a list of vars with different values a = 2 b = 1 c= 12343243 d = 8998 Can find the smallest value aSmallestVALUE = min([a, b, c, d]) and index [v,idx]=min([a, b, c, d]) I want to find the index of variable and sort this list from 0 to…
S.M. Pat
  • 308
  • 3
  • 12
0
votes
1 answer

How to run Octave code without the Octave IDE (similarly to Python)?

Context: When I use Python + matplotlib, I can compose the code in any text editor (like Sublime Text), do CTRL+B, and then the text output appears in the "Build results" panel of the text editor, and, optionally, graph/plots are rendered in a new…
Basj
  • 41,386
  • 99
  • 383
  • 673
0
votes
1 answer

Octave (GUI): Clear all variables of the work environment in one go

GNU Octave, Version 6.1.0, using the GUI: Is there a way to clear all variables that are listed in the work environment without restarting Octave and without clicking and clearing every single variable? This is needed for a cold start when switching…
questionto42
  • 7,175
  • 4
  • 57
  • 90
0
votes
1 answer

summation series using octave of while loop

The summation sun=0; i=0; while(i<=20) while(j<=5) y=i+2j j=j+1; end j=0; i=i+1 end Failed with error when I run it, it displays a lot of y=20+i
ATW B
  • 3
  • 3
0
votes
1 answer

Change scale of axes in octave plot

I am using the plot function of octave to plot a graph. The code is as below - plot([1; 2; 3; 4], [1; 2; 3; 4]); The graph looks as below - As you can see, the plot is using a scale of 1.5 on both x and y axes. I want to change the scale to 1 on…
Praneet Dixit
  • 1,393
  • 9
  • 25