Community Profile

photo

JD


Last seen: 3 years ago Active since 2019

Statistics

  • Thankful Level 3

View badges

Content Feed

View by

Question


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,...

3 years ago | 2 answers | 0

2

answers

Question


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. ...

3 years ago | 2 answers | 0

2

answers

Question


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...

3 years ago | 2 answers | 0

2

answers

Question


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...

4 years ago | 1 answer | 0

1

answer

Question


'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...

4 years ago | 1 answer | 0

1

answer

Question


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...

4 years ago | 2 answers | 0

2

answers

Question


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...

4 years ago | 1 answer | 1

1

answer

Question


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...

4 years ago | 2 answers | 0

2

answers

Question


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...

4 years ago | 1 answer | 0

1

answer

Question


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...

4 years ago | 1 answer | 0

1

answer

Question


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...

4 years ago | 1 answer | 0

1

answer