Effacer les filtres
Effacer les filtres

Can we use aliasing concept to achieve solution for following use case in MATLAB ?

1 vue (au cours des 30 derniers jours)
Hriday Ranjan
Hriday Ranjan le 6 Fév 2020
Commenté : Hriday Ranjan le 6 Fév 2020
We want to access same signal object and wants to access this with two different names. For example "Signal_A" is a signal which have an alias as "Alias_Signal_A".
So if value of signal "Signal_A" is updated to ‘X’, then updated value of signal shall be accessible by using both "Signal_A" or its alias "Alias_Signal_A".

Réponses (1)

John D'Errico
John D'Errico le 6 Fév 2020
I suppose you could do so, by writing a custom alias class to do it. It would seem a bit of a kludge though.
But, no. MATLAB does not have any simple scheme to alias two variables, linking them directly so that one references the other, or changing one updates the other.
  1 commentaire
Hriday Ranjan
Hriday Ranjan le 6 Fév 2020
Thanks for answering. i would really appriciate if you can guide me in creating such class.

Connectez-vous pour commenter.

Catégories

En savoir plus sur Complex Logic dans Help Center et File Exchange

Produits


Version

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by