MATLAB Answers

How to extract a app designer component from an array and change its properties

7 views (last 30 days)
Caleb Schindler
Caleb Schindler on 24 Mar 2020 at 14:58
Answered: Harsha Priya Daggubati on 27 Mar 2020 at 7:19
I currently have an issue where I have a 1x64 array of app designer components (lamps) and I want to be able to index the matrix then change the color of the lamp however Im unsure how to alter the lamp color after extracting it from the matrix.
example
D=[app.A1, app.B2, app.C3]
Desired_Lamp=D(1,Desired_Column)

  0 Comments

Sign in to comment.

Answers (1)

Harsha Priya Daggubati
Harsha Priya Daggubati on 27 Mar 2020 at 7:19
Hi,
I guess you can use Property Inspector to know the properites of any variable present in the workspace. If it has any properties you can refer using '.' . I think it should go well. If not, can you share these variables so that I can investigate the issue with more clarity.

  0 Comments

Sign in to comment.

Sign in to answer this question.

Products


Release

R2019b