Differential Equation formulation (and execution in matlab) problem

Click For Summary
SUMMARY

The discussion centers on formulating and executing a differential equation in MATLAB, specifically the equation dx/dt = I(S*A*x). The user is attempting to model the evolution of variable x over time using data from an Excel spreadsheet, where 'I' consists of 10,000 constant volume values, while 'S' and 'A' represent varying pressure and temperature readings taken every 30 minutes over 48 hours. The user is facing challenges in correctly formulating the differential equation to yield sensible results in MATLAB.

PREREQUISITES
  • Understanding of differential equations, specifically dx/dt formulations.
  • Proficiency in MATLAB, particularly in executing differential equations.
  • Familiarity with data manipulation in Excel and CSV file formats.
  • Knowledge of how to import and handle external data in MATLAB.
NEXT STEPS
  • Learn MATLAB's ODE solvers, such as ode45, for solving differential equations.
  • Explore MATLAB's data import functions, focusing on csvread and readtable.
  • Investigate techniques for preprocessing Excel data to ensure compatibility with MATLAB.
  • Study the impact of varying parameters in differential equations on model outcomes.
USEFUL FOR

Researchers, engineers, and students working on mathematical modeling, particularly those using MATLAB for solving differential equations and analyzing time-dependent data from external sources.

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 ·
Replies
5
Views
3K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 4 ·
Replies
4
Views
8K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
5K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 8 ·
Replies
8
Views
3K