can a struct function access struct elements ?
古いコメントを表示
myStruct.va1 = 1
myStruct.val2 = 2
myStruct.mySum = @(x,y) x + y
nonetheless, x & y are specific inputs into the function.
if we don't pass an inline function, rather an existing myFun.m defined function, would the function be able to access any of the other struct fields without specifically feeding them to it as function parameters? (this makes me thinking of objects, but - rather avoid definining classes, etc).
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Function Creation についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!