MATLAB Differential Equation formulation (and execution in matlab) problem

AI Thread Summary
The discussion revolves around solving a differential equation, specifically dx/dt = I(S*A*x), and executing it in MATLAB. The user has variables stored in an Excel spreadsheet, with 'I' representing constant values across 10,000 entries, while 'S' and 'A' are variable pressure and temperature readings taken every 30 minutes over a 48-hour period, totaling 96 readings each. The user is encountering difficulties in formulating the differential equation correctly in MATLAB to produce sensible results. A suggestion was made to save the data as a CSV file for easier import into MATLAB, although the user indicated that the import process is not the main issue, but rather the resolution of the equation itself.
pottersj
Messages
3
Reaction score
0
Hello,

I am trying to solve an equation and then execute it in matlab. It is dx/dt=I(S*A*x). so I am trying to see the evolution of x with time.

The variables are all in an excel spreadsheet in different columns and the name of the columns are the name of the variables.

'I' is in an excel column of about 10000k different volumes which are the number of n i would need for the model to output. their values are constant

but S and A vary as they are pressure and temperature readings taken every 30 mins over 48 hrs in total. So i have 96 x 2 reading in total for S and A in my excel spreadsheet.

These variables will come from an external excel spreadsheet but I am having difficulties in formulating this diff equation so that it would yield sensible results in mat lab.

Any ideas?
Thank you
 
Physics news on Phys.org
I have used that but the import doesn't seem to be a problem is more the resolution that seems to be.
 

Similar threads

Replies
5
Views
3K
Replies
4
Views
3K
Replies
7
Views
1K
Replies
9
Views
2K
Replies
5
Views
3K
Replies
2
Views
4K
Back
Top