Can the script detect the version of MATLAB on which the script run?
조회 수: 1 (최근 30일)
이전 댓글 표시
I write a script that depends on a new feature of R2020b. But other people may not have R2020b. Is it possible to write such as
if (the version is R2020b)
run hello_R2020b.m
else if
run hell_R2020a.m
end
?
댓글 수: 0
채택된 답변
추가 답변 (1개)
John D'Errico
2020년 12월 13일
편집: John D'Errico
2020년 12월 13일
WTP?
A = ver('matlab')
A =
struct with fields:
Name: 'MATLAB'
Version: '9.9'
Release: '(R2020b)'
Date: '29-Jul-2020'
Why you think you need to use run, I cannot imagine, but whatever floats your boat.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!