@Steven Lord Sorry about posting the full text of function. Didn't know that. Is it okey if I just put a function in the class that I refered to?
Could somebody please help me with Object-Oriented Programming in MATLAB?
1 ビュー (過去 30 日間)
表示 古いコメント
Hi All,
I am working on a script that call a "classdef" function and I need to have access to a value in this "classdef". Could sombody please tell me how I can do that? Any tutorial/good references to help me to learn/underestand this class definition would be appreciated too.
Here is one classdef example from MATLAB
classdef helperBLEChannelClassification < ble.internal.ConfigBase
properties
.......
end
methods
function classifyChannels(obj, connectionConfig)
per = .....
end
end
% SL: Snipped the rest
end
[SL: Please do not post the full text of MathWorks functions or classes.]
channelClassification = helperBLEChannelClassification(...)% With the desired inputs
However, I'd like to get the "per" value in the "function classifyChannels(obj, connectionConfig)" as an output whenever I call this "channelClassification" function. Any idea?
Many many thanks in advance
回答 (0 件)
参考
カテゴリ
Find more on Construct and Work with Object Arrays in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!