Community Profile

# JD

Last seen: oltre un anno fa Attivo dal 2019

#### Content Feed

Visto da

Domanda

Saving output of for loop after each iteration (for a function)
y = 0:0.05:1; u= 2*y-(2*y.^3)+y.^4; a = 0:0.01:1; b = 4000; Carray=zeros(1,101) for i=1:size(a) c=A_function(y,...

oltre un anno fa | 2 risposte | 0

### 2

risposte

Domanda

Array size decreases with every iteration
Hi, I have an array A of size 500,000 x 1 I want to make multiple new arrays by dropping the 1st row, 2nd row, 3rd row etc. ...

circa 2 anni fa | 2 risposte | 0

### 2

risposte

Domanda

Multiple Iterations over a system of linear equations
Hello all. I am trying to solve the system of linear equations define by CX = K over multiple iterations (300*delta_t). But my p...

circa 2 anni fa | 2 risposte | 0

### 2

risposte

Domanda

Peak Value from bodemag plot
I am trying to calculate the peak value of the bodemag plot. Attached is the code I am trying to use [gpeak,fpeak] = getPeakGa...

circa 3 anni fa | 1 risposta | 0

### 1

risposta

Domanda

'trapz' to find area under curve not working
.fig file attached. For all positive y values, I want to find the area under the graph. if y>0 for x = length(y) i...

circa 3 anni fa | 1 risposta | 0

### 1

risposta

Domanda

Plotting on .fig file (in new window if possible)
Hello, I am trying to open a figure and plot additional data on it. The figure was given to me as a .fig file so I do not have...

circa 3 anni fa | 2 risposte | 0

### 2

risposte

Domanda

How to interpolate ‘z’ for one value of ‘x’ but multiple values of y?
I have an array x of size 1x56 An array y of size 1x20 And an array z of size (20x56) I want to interpolate to find ‘z’ for...

circa 3 anni fa | 1 risposta | 1

### 1

risposta

Domanda

Plotting multiple 3D plots on one graph
Hi, I have the following code. I want to plot all 7 on the same plot. How do I do that? I tried hold on, but that gives me an...

circa 3 anni fa | 2 risposte | 0

### 2

risposte

Domanda

How to compute equation only for x(y>0)
Hello, I have time, t on the x axis and power, Pw on the y axis. I want to compute the following equations for only times, t w...

circa 3 anni fa | 1 risposta | 0

### 1

risposta

Domanda

How to reference a variable saved as .mat file to execute code
So I have a variable named cyc_mph that is a 1370x2 double. This data is stored as a .mat file. The first column in the variab...

circa 3 anni fa | 1 risposta | 0

### 1

risposta

Domanda

Help needed: empty plot when plotting for loop
Hello, Below is my code. I am trying to plot all values of the for loop but I am getting an empty plot. What am I doing inco...

circa 3 anni fa | 1 risposta | 0

risposta