5,318 questions
-3 votes
1 answer
46 views
Suppress extra help information in GNU Octave [closed]
In GNU Octave when I use help funcname for some function, I get the help info followed by this message: Additional help for built-in functions and operators is available in the online version of the ...
2 votes
2 answers
135 views
Applying a function to two matrices column-by-column
Short version: How do I vectorize two matrices A and B by column so that I can pass the 1st, 2nd, ..., ith column of A and the 1st, 2nd, ..., ith column of B to a function without a loop? I have two ...
0 votes
0 answers
66 views
Is it possible to use Octave in a notebook-like way?
I'm currently taking a Numerical Analysis course, where we use Octave for a bunch of exercises. The teacher instructed us to use Octave with the GUI to make it easier for us, and I have no difficulty ...
3 votes
0 answers
56 views
How to differentiate containers.Map objects in octave?
In Octave, containers.Map objects are handle objects that can be passed around by reference but always refer to the same object [1]. However, the only test for "equality" between containers....
2 votes
0 answers
85 views
GNU Octave not assigning closest double to a number literal - Can you reproduce? Is it a bug? [closed]
In GNU Octave 10.2.0, when I run x = 1.000444, I seem not to get the closest double to the real number 1.000444. Not even tied: >> format long >> x = 1.000444 x = 1....
0 votes
0 answers
46 views
Printing plot with option -dpdflatexstandalone in Octave produces corrupted PDF
I am trying to create 3D-plots with Octave that I can then include in a LaTeX-document. For this, I print the plot from Octave using the option -dpdflatexstandalone which creates a PDF of the plot ...
2 votes
2 answers
80 views
How to count number of appearances in 3D cell
I have a cell 3x26x72 which contains a series of characters of size 1xN char. I would like to count the number of appearances of each serie of characters in the cell 1x26x72. I tried with "mode&...
0 votes
1 answer
86 views
MATLAB / OCTAVE matrix building speed question [closed]
Can someone explain to me please why B = diag(-2*ones(m,1),0) + diag(ones(m-1,1),-1) + diag(ones(m-1,1),1) takes 1,22 s. While A = diag(-2*ones(1,n)) + diag(ones(1,n-1),1) + diag(ones(1,n-1),-1) ...
1 vote
1 answer
120 views
How to solve an equation with symbolic variable?
I have the following simple script in Octave : pkg load symbolic syms a P=[[a 2 -1];[2 sym('-3/2') sym('1/2')];[-2 0 sym('1/2')]] M=[3 4 2;8 10 6;12 16 10] P*M Resulting in: [3*a + 4 4*a + 4 2*...
2 votes
1 answer
88 views
Error: Invalid dot name structure assignment because the structure array is empty
I'm having this error but I don't understand why. I'm creating a structure of size 3x4x4 with 6 fields within loops. Then, I would like to create two more fields for the whole structure. How can I do ...
2 votes
1 answer
53 views
Octave contour function returns an unaccpected erro message
I have been trying to solve this issue with out any luck so far. From the Coursera course "Introduction to Data, Signal, and Image Analysis with MATLAB" the below code is retrieved. I'm ...
1 vote
0 answers
44 views
Fill: On covering (hiding) part of an edge of the old region by a new overlapping region
I am using Octave, version 4.2.1. Given the Octave code: clear all close all clc %region 1 x = [0 1 1]; y = [0 0 1]; fill(x,y,'b') hold on %region 2 x = [0 1 1]; y = [1 1 0]; fill(x,y,'y') Region 1 is ...
0 votes
0 answers
125 views
Is it possible to run xeus-octave in a jupyter notebook on VS Code?
I've been running around in circles trying to get octave to run in a jupyter notebook using VS Code. I'm hoping to install xeus-octave. At present, I'm opening VS Code, then opening a terminal in VS ...
0 votes
0 answers
40 views
Check code for UTC time conversions in Octave
I have written an Octave function which takes a string value for UTC time and converts it to the time in a given timezone, code shown below. function [ dest_time ] = utc_2_given_timezone( ...
0 votes
2 answers
88 views
GNU Octave stereo recording, how?
I'd like to use GNU Octave for signal processing; one channel would be the audio, the other would be a sync signal input. This is the default recorder object in Octave: BitsPerSample = 8 ...