Extracting user defined data

1 visualizzazione (ultimi 30 giorni)
Hitesh Bugata
Hitesh Bugata il 7 Ott 2019
Commentato: Jon il 8 Ott 2019
When I run the program, it should ask for values of m, y/b ratio. I can provide y/b value as 0.15, 0.23... which the program needs to interpolate and display the answer. Is it possible to create such program?

Risposta accettata

Jon
Jon il 7 Ott 2019
If you type doc readmatrix on the command line you will get all the documentation, including examples for using this function. You can also google MATLAB readmatrix.
SImilarly if you look at the documentation for interp2 it will give you examples.
If once you have done this and put together an initial code to try out your ideas and you are still stuck then please attach the code and describe the specific problems you are having.
  8 Commenti
Hitesh Bugata
Hitesh Bugata il 8 Ott 2019
I should mention that I've used interp1 and not interp2.
Jon
Jon il 8 Ott 2019
Oh OK. From your initial problem description I thought you were interpolating over the rows and columns of the table thus interp2. I can understand if you are selecting just one column from the table and are interpolating over the rows of that column it makes sense to use interp1

Accedi per commentare.

Più risposte (1)

Jon
Jon il 7 Ott 2019
You can use readmatrix to get the data out of the spreadsheet.
You can use interp2 to do the interpolation.
  1 Commento
Hitesh Bugata
Hitesh Bugata il 7 Ott 2019
May I get a sample code on how it looks? It would clarify many of my doubts. Thank you!

Accedi per commentare.

Categorie

Scopri di più su Time Series Objects in Help Center e File Exchange

Tag

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by