数据结构中字段的引用问题。
古いコメントを表示
unction addressStruct(Struct,Field)
if isfield(Struct,Field)
fprintf('The value of the %s field is: ',Field);
disp(Struct.Field);
else
fprintf('Error:%s is not a valid field',Field);
end

採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で MATLABMobile 基础知识 についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!