Creating and coding MATLAB File to Analyse Equations

조회 수: 4 (최근 30일)
James Leak
James Leak 2019년 7월 27일
댓글: Star Strider 2019년 8월 19일
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!

답변 (1개)

Star Strider
Star Strider 2019년 7월 27일
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.
  댓글 수: 2
James Leak
James Leak 2019년 8월 19일
Many thanks for this comment! It proved most helpeful.
Star Strider
Star Strider 2019년 8월 19일
My pleasure.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Genomics and Next Generation Sequencing에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by