How to use set and get functions with objects contain struct properties ??

3 vues (au cours des 30 derniers jours)
Ammar
Ammar le 11 Avr 2013
Hi,
I need to use set, get, and findobj functions with a class object that have a structure in its properties, does any one know how to do that ?
code example for the properties
classdef mobilenode < hgsetget
properties
ID
position
NAP
outgoinglinks = struct('ID',{[]},...
'destinationID',{[]},...
'cap',{[]},...
'prob',{[]},...
'price',{[]});
incominglinks = struct('ID',{[]},...
'sourceID',{[]},...
'cap',{[]},...
'prob',{[]},...
'price',{[]});

Réponses (0)

Catégories

En savoir plus sur Structures dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by