MATLAB Answers

Creating and coding MATLAB File to Analyse Equations

1 view (last 30 days)
James Leak
James Leak on 27 Jul 2019
Commented: Star Strider on 19 Aug 2019
Hi,
I'm new to MATLAB and I'm trying to create a file that will run analyse data from injecting concrete into soil, and compare two equations that measure the preassure and the radius of a grout column. I have data in an EXCEL file that I would I plan to use, but first I need to create a file with the two equations. Is there a way I can create a file with the equations that will allow me to import data and soil values into the equations and create a code that will allow me to use the file to analyse all the multiple grouting column data?
The equations are:
p1.png
p2.png
Any help is hugely appreciated, even if its just how to get started with the coding.
Many thanks!

  0 Comments

Sign in to comment.

Answers (1)

Star Strider
Star Strider on 27 Jul 2019
To begin to understand MATLAB, see Getting Started.
You will need to write a script file that reads your data and then presents it so that your equations can use it to calculate the results you want. If you have R2019a (or later), use the readmatrix function to import it, otherwise xlsread is likely your best option.
You will need to understand Matrix Indexing. MATLAB has a very powerful capability called Vectorization, so it is important that you understand it and how to use it effectively.
Code your equations and do the necessary calculations with your data. If you have problems, post your code (and attach your Excel file), fully desciribing any problems you are having. If your code throws errors, compy all the red text from your Command Window to a Comment here. (Details are important.) We will do our best to help you get your code running correctly.

Translated by