数据结构中字段的引用问题。
이전 댓글 표시
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에서 App 构建에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!