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

1 Ansicht (letzte 30 Tage)
Billy Jones
Billy Jones am 15 Apr. 2020
Bearbeitet: Stephen23 am 17 Apr. 2020
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 Kommentare

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu MATLAB finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by