MATLAB Answers

0

Extracting user defined data

Hitesh Bugata さんによって質問されました 2019 年 10 月 7 日
最新アクティビティ Jon
さんによって コメントされました 2019 年 10 月 8 日
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?

  0 件のコメント

サインイン to comment.

タグ

製品

2 件の回答

Jon
回答者: Jon
2019 年 10 月 7 日
 採用された回答

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 件のコメント

Jon
2019 年 10 月 8 日
I'm glad to hear you got your program running. If this answered your question, please "accept" the answer.
Hitesh Bugata 2019 年 10 月 8 日
I should mention that I've used interp1 and not interp2.
Jon
2019 年 10 月 8 日
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

サインイン to comment.


Jon
回答者: Jon
2019 年 10 月 7 日

You can use readmatrix to get the data out of the spreadsheet.
You can use interp2 to do the interpolation.

  1 件のコメント

Hitesh Bugata 2019 年 10 月 7 日
May I get a sample code on how it looks? It would clarify many of my doubts. Thank you!

サインイン to comment.



Translated by