how i can import specific rows from excel and than use that row in equations MATLAB .
2 ビュー (過去 30 日間)
古いコメントを表示
Engineer Batoor khan mummand
2020 年 10 月 5 日
コメント済み: Engineer Batoor khan mummand
2020 年 10 月 7 日
hI all;
i want to import x rowfrom excel file but those values of x which is greater than 200 not all ,second how i can use this x value in equation like y=3*x+12 in matlab.
0 件のコメント
回答 (1 件)
Jon
2020 年 10 月 5 日
You can use the matlab command readmatrix to get the data in from Excel (type doc readmatrix on the command line for details)
This will return all the values in your spreadsheet, not just the ones where x > 200. However if you have now put these into a variable, let's call it x, you can get just those values using something like:
x = x(x>200)
to evaluate the expression you have just use
y = 3*x + 12
Just as you already have it written
11 件のコメント
参考
カテゴリ
Help Center および File Exchange で Spreadsheets についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!