Reading a specific number from array/table?
1 回表示 (過去 30 日間)
古いコメントを表示
Hi!
I have this table from excel,
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/155280/image.png)
d[mm] stands for diameter in [mm], b1 is the coefficient for diameter. I want to create a script, in which I specify diameter d in [mm], and the the result is the coefficient from the second row. For example; d=40 -> (b1)=1,03
Thanks for your help!
0 件のコメント
採用された回答
Ashish Sheikh
2016 年 2 月 17 日
If you are importing excel data which is like 2 x 9 matrix ...
if A is 2 x 9 array ... d =60 ( for which the coefficient to be found,) then
z=find(A(1,:)==d); y=A(2,z) ; % y is the coefficient
Enter the number to be searched as d and y is the coefficient
2 件のコメント
Ashish Sheikh
2016 年 2 月 18 日
Do you mean that.. you want to round off the number and then perform linear interpolation ????
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Spreadsheets についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!