Community Profile # Martin

### Imperial College London

Active since 2012

#### Statistics

• • #### Content Feed

View by

what does the four vector mean in matlab legend 'Position'?
Thanks for all the information on this guys. I think what I have is the dimensions given in 'normal' units. Basically I have to ...

9 years ago | 0

Question

what does the four vector mean in matlab legend 'Position'?
I use the line: leg = legend('Ionisation','Recombination'); pos = get(leg,'Position') But get returned the ...

9 years ago | 4 answers | 0

### 4

Question

can you iterate a change in odefun for ode45?
Hi, so I am wanting to plot how a solution to a set of coupled odes change as the function changes by some iterated amount. I ha...

9 years ago | 0 answers | 0

### 0

Question

Can ODE45 solve this equation?
hi, so I have an ODE that I am solving with ODE45. It basically solves: d2x/dt2 = exp(-t/tp)cos(t); where tp is a constant....

10 years ago | 1 answer | 0

### 1

How to prevent Matlab to round off numbers?
I'm not entirely sure how many digits it works for but putting the line: "format long g" at the start of your script might h...

10 years ago | 0

Question

Can you use ODE45 in a for loop?
Hi there, I am having to solve a pair of coupled 1st ODEs. I also need to change the integration time like this: ti = 0 ...

10 years ago | 1 answer | 1

### 1

Question

Using sign(x) with -0.00?
Hi, I need to go through a vector and check the sign of an oscillatory function but I have a lot of -0.0000's at the start which...

10 years ago | 2 answers | 0

### 2

Question

How do you deal with very large and very small numbers for ode45?
Hi there, I am using the ODE45 function in matlab and am having to do some calculations where the time scale is on the order ...

10 years ago | 1 answer | 0

### 1

How can I convert an array to a matrix?
As Jose mentioned the reshape function is a really good one. The help file on that one is really useful for explaining how it ...

10 years ago | 0

Question

Solving coupled 1st ODEs with ODE45 or Runge-Kutta?
Hi there, I am having to solve a simple problem where I am equating Newtons's Second Law to the Lorenz Force on a particle: F =...

10 years ago | 0 answers | 0