フィルターのクリア

Accessing struct variable using another variable.

1 回表示 (過去 30 日間)
Xun Jing Toh
Xun Jing Toh 2019 年 3 月 28 日
編集済み: Xun Jing Toh 2019 年 3 月 28 日
Hi, I will like to use another a variable to modify another variable like a pointer in C programming.
distance.rate = 10;
a = distance.rate.rate;
distance.rate.rate = 20;
a is still 10 but I want to make "a" link to "distance.rate.rate" is it possible?
I have many variable with really long name so it will be helpful to refer to it using a few letters.

回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by