Question

How to run through many variables at a different set of times continuously?

There are 200 O's and each O lasts 100 minutes, so I need to run the simulation for t=20000 minutes and then every 100 minutes I...

11 giorni ago | 1 answer | 0

Question

Computing the correct output from an if function

My code keeps showing an error. So the statement X_dot needs to start calculating from the second point in my measurements. so I...

circa 2 mesi ago | 1 answer | 0

Question

Calculating the difference between a vector and time

I'm looking for a way to get this loop to work, basically I need to calculate the difference in a 3x1 vector divide by the diffe...

circa 2 mesi ago | 1 answer | 0

Question

How to caculate a value for a step - the previous step

So, I have a value x and i want a piece of code which would allow me to take x_current - x_one_step_previously for example at i...

circa 2 mesi ago | 2 answers | 0

Question

A for loop need help ASAP

I have a loop and I want to collect the output? A are arrays 0:300 for i = 0:3:300 Fi = atan(-(A5(1,1+i)/A5(1,2+i))); Theta ...

circa 2 mesi ago | 1 answer | 0

Question

Collecting for loop output

I have a loop and I want to collect the output? A are arrays 0:300 for i = 0:3:300 Fi = atan(-(A5(1,1+i)/A5(1,2+i))); Theta ...

circa 2 mesi ago | 0 answers | 0

Question

for loop collecting output

F is giving me the same measurements and I can’t seem to find how to move to the next position. A = (:,:,1) % There are 100 ...

circa 2 mesi ago | 1 answer | 0

Question

Matrix indexing collecting accurate results

I have a for loop and some challenging mathematical equations my goal is to get a 3x3 matrix where A is preferable I would like ...

circa 2 mesi ago | 1 answer | 0

Question

Error using the igrfmagn function (collecting the output)

I can’t seem to collect the values produced by the function igrfmagm. The error produced says ‘Error using cell Too many output ...

2 mesi ago | 1 answer | 0

Question

Collecting the outputs of a function within a for loop

I’ve got a function within a for loop and I want to collect the output variables of the function. Currently, the outputs A, B, C...

2 mesi ago | 1 answer | 0

Question

Issues in Matrix multiplication

I have 100 6 by 6 matrices and 100 6 by 1 matrices and I want to multiply them. If I do X=A.*B it does not give me the correct s...

2 mesi ago | 2 answers | 0

Question

Derivative of a vector

I have a vector 3x1 which I multiply by a 3x3 matrix and get a solution (this is all done in a function). I take the resulting 3...

2 mesi ago | 2 answers | 0

Question

set some values to zero in a matrix

Hello, I have a 6x20000 matrix. I would like make the 3 smalest values on each row equal to zero. For example if I have: [ 1, 1...

2 mesi ago | 1 answer | 0