필터 지우기
필터 지우기

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 CenterFile Exchange에서 Structures에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by