Community Profile

# GCats

Last seen: 2 months ago Active since 2020

#### Content Feed

View by

Question

Array division of two non-zero arrays returns zero
Hi everyone! I have 2 very long arrays X and Y (each with dimensions 16384x1) with the first one with values in the range 0.230...

3 months ago | 1 answer | 0

### 1

Question

Reshaping and sizing a matrix
Hi all, I have two matrices with dimensions A = [4096x2], B = [16384x2]. The first column shows frequency range in Hz, the seco...

4 months ago | 1 answer | 0

### 1

Question

Color gradient for graph in a for loop
Hi everyone! I'm plotting 3 force vs displacement plots in the same picture. For one of the lines in the plot, i'd like the col...

4 months ago | 2 answers | 0

### 2

Question

Surf and reshape for 4D plot
Hi all, I would like to make a plot using surf. I have a time vector with 17281x1, frequency of 17281x1, and a signal of 161x1...

4 months ago | 0 answers | 0

### 0

Question

Spectrogram of known frequency signal
Hi all, I need to generate a spectrogram for a frequency signal which I constructed by selecting only certain parts of diffrer...

4 months ago | 1 answer | 0

### 1

Question

ode15s and 0de23 very slow at high frequencies
Hi all! I have a SDOF mass + non-linear spring system excited by a sine wave. I am solving for the displacement of the system...

4 months ago | 2 answers | 0

### 2

Question

How to select one period in non-linear system response?
Hi all, I have a non-linear SDOF system excited by a sine wave with increasing frequency: y = y0 *sin(2*pi*fe*t) and I'm usi...

5 months ago | 0 answers | 0

### 0

Question

Keeping values of function when solving ODE
Hello everyone! I have a function describing a SDOF state space with a sinusoidal input y in one script as follows: function d...

5 months ago | 1 answer | 0

### 1

Question

Question over pseudo algorithm
Hi all! I'm trying to convert this pseudo algorithm into code. Essentially, I am solving a differential equation with ode45 w...

6 months ago | 1 answer | 0

### 1

Question

Saving a variable in a .mat file
Hello everyone, I have a .m file where a function runs and outputs a series of variables. Right now, I am saving one values ...

1 year ago | 1 answer | 0

### 1

Question

Choose randomly between two functions
Hello! I'm implementing a Double Q-Learning Algorithm to the pendulum-v0. I'm looking at the pseudocode and there's one part o...

1 year ago | 1 answer | 0

### 1

Question

Environment for Reinforcement Learning Project
Hi everyone! I'm currently looking to work on a small Reinforcement Learning project. Friends have reccomended the OpenAI Gym (...

1 year ago | 1 answer | 1

### 1

Question

Color filling between lines in figure
Hi! I have a plot where the intersection of some lines form a shape, and I'd like to fill in this area with a color to show a ...

1 year ago | 1 answer | 0

### 1

Question

Sizing in subplot()
Hi! I'm plotting 6 graphs using the subplot() command. I'd like 3 rows and 2 columns, however all the graphs are squeezed at th...

1 year ago | 2 answers | 0

### 2

Question

alternative form for find(max(x))
Hi all! I am trying to optimize my program by reducing the nested coding and perhaps "slow" functions such as find(). I have t...

1 year ago | 1 answer | 0