If i select a variable name... How to find the corresponding value?

1 回表示 (過去 30 日間)
Billy Jones
Billy Jones 2020 年 4 月 15 日
編集済み: Stephen23 2020 年 4 月 17 日
Hello,
As you can see i have an input File which contains some data. (Input File = .subvar format)
!file.version=1.35t6!
! Wage;
subvargroup.begin ($G_Wk3)
subvar( $_Wk3_l_m, str = ' 15601 ' ) ! [kg] l
subvar( $_Wk3_l_CoG_x, str = ' 0.019 ' )
subvar( $_Wk3_l_Ixx, str = ' $G_Wk3.$_Wk3_l_m * 2.2 ' )
subvar( $_Wk3_l_CoG_y, str = '-0.007 ' )
subvar( $_Wk3_l_CoG_z, str = ' 1.644 ' )
subvargroup.end ($G_Wk3)
1 Question:
So i want to know the value of
$_Wk3_l_m
The value is:
15601
But how can i search for it? How to get the right row and column of
15601
and
$_Wk3_l_m
2 Question:
I want to have the value of $_Wk3_l_Ixx but the get the right value i have to do a short calculation. To get the result i have to read out the value of $_Wk3_l_m and multipicate it with 2.2 then i have my result!
subvar( $_Wk3_l_Ixx, str = ' $G_Wk3.$_Wk3_l_m * 2.2 ' )
Thank you in advance. Stay at home and take care. Nice regards from Europe.
  4 件のコメント
darova
darova 2020 年 4 月 17 日
What about strfind?
Stephen23
Stephen23 2020 年 4 月 17 日
編集済み: Stephen23 2020 年 4 月 17 日

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeMATLAB についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by