How programmatically know if an Update is installed for a particular matlab release?

10 vues (au cours des 30 derniers jours)
Hello,
MathWorks proposes some Updates for a given release.
For instance, (at this time writing) there are 4 proposed Updates for R2018b; and 2 ones for R2019a.
but my question is: does a function such ver or version would explicitely indicate which Update if installed (if any) ?
Regards
Pascal

Réponse acceptée

Jan
Jan le 22 Mai 2019
Modifié(e) : Jan le 22 Mai 2019
Yes. See the output of version:
9.6.0.1114505 (R2019a) Update 2
With
ver('Matlab')
you get the version number only. But with
ver
the output of version is displayed.
  1 commentaire
James Richard
James Richard le 3 Mai 2020
Could you do it with windows command line?
On cmd,
matlab -help
has the same output as
ver('Matlab')
but not
ver

Connectez-vous pour commenter.

Plus de réponses (4)

adam honse
adam honse le 25 Oct 2020
Maybe this helps.
[ver datestr] = version
ver =
'9.9.0.1495850 (R2020b) Update 1'
datestr =
'September 30, 2020'

Jorik Caljouw
Jorik Caljouw le 2 Avr 2021
Another way to get this info is with
vd = version('-description')
If no update is installed you get:
vd =
0×0 empty char array
If an update is installed you get (e.g.):
vd =
'Update 7'

Stefanie Schwarz
Stefanie Schwarz le 19 Sep 2024
Modifié(e) : Stefanie Schwarz le 19 Sep 2024
There is a new "matlabRelease" function available since R2020b that will directly output the update release number:
>> releaseInfo = matlabRelease
releaseInfo =
matlabRelease with properties:
Release: "R2022b"
Stage: "release"
Update: 0
Date: 24-Aug-2022

Image Analyst
Image Analyst le 19 Sep 2024
s = ver
s = 1x92 struct array with fields:
Name Version Release Date
for k = 1 : numel(s)
fprintf('#%d, Using %s, Version %s, Release %s, Date %s\n', ...
k, s(k).Name, s(k).Version, s(k).Release, s(k).Date);
end
#1, Using 5G Toolbox, Version 24.2, Release (R2024b), Date 21-Jun-2024 #2, Using Aerospace Blockset, Version 24.2, Release (R2024b), Date 21-Jun-2024 #3, Using Aerospace Toolbox, Version 24.2, Release (R2024b), Date 21-Jun-2024 #4, Using Antenna Toolbox, Version 24.2, Release (R2024b), Date 29-Jul-2024 #5, Using Audio Toolbox, Version 24.2, Release (R2024b), Date 21-Jun-2024 #6, Using Automated Driving Toolbox, Version 24.2, Release (R2024b), Date 21-Jun-2024 #7, Using Bioinformatics Toolbox, Version 24.2, Release (R2024b), Date 21-Jun-2024 #8, Using Bluetooth Toolbox, Version 24.2, Release (R2024b), Date 21-Jun-2024 #9, Using Communications Toolbox, Version 24.2, Release (R2024b), Date 21-Jun-2024 #10, Using Computer Vision Toolbox, Version 24.2, Release (R2024b), Date 12-Jul-2024 #11, Using Control System Toolbox, Version 24.2, Release (R2024b), Date 21-Jun-2024 #12, Using Curve Fitting Toolbox, Version 24.2, Release (R2024b), Date 21-Jun-2024 #13, Using DO Qualification Kit, Version 24.2, Release (R2024b), Date 21-Jun-2024 #14, Using DSP System Toolbox, Version 24.2, Release (R2024b), Date 21-Jun-2024 #15, Using Database Toolbox, Version 24.2, Release (R2024b), Date 21-Jun-2024 #16, Using Datafeed Toolbox, Version 24.2, Release (R2024b), Date 21-Jun-2024 #17, Using Deep Learning Toolbox, Version 24.2, Release (R2024b), Date 21-Jun-2024 #18, Using Econometrics Toolbox, Version 24.2, Release (R2024b), Date 21-Jun-2024 #19, Using Embedded Coder, Version 24.2, Release (R2024b), Date 21-Jun-2024 #20, Using Filter Design HDL Coder, Version 24.2, Release (R2024b), Date 21-Jun-2024 #21, Using Financial Instruments Toolbox, Version 24.2, Release (R2024b), Date 21-Jun-2024 #22, Using Financial Toolbox, Version 24.2, Release (R2024b), Date 21-Jun-2024 #23, Using Fixed-Point Designer, Version 24.2, Release (R2024b), Date 21-Jun-2024 #24, Using Fuzzy Logic Toolbox, Version 24.2, Release (R2024b), Date 21-Jun-2024 #25, Using Global Optimization Toolbox, Version 24.2, Release (R2024b), Date 21-Jun-2024 #26, Using HDL Coder, Version 24.2, Release (R2024b), Date 21-Jun-2024 #27, Using HDL Verifier, Version 24.2, Release (R2024b), Date 06-Sep-2024 #28, Using IEC Certification Kit, Version 24.2, Release (R2024b), Date 21-Jun-2024 #29, Using Image Acquisition Toolbox, Version 24.2, Release (R2024b), Date 21-Jun-2024 #30, Using Image Processing Toolbox, Version 24.2, Release (R2024b), Date 21-Jun-2024 #31, Using Industrial Communication Toolbox, Version 24.2, Release (R2024b), Date 21-Jun-2024 #32, Using Instrument Control Toolbox, Version 24.2, Release (R2024b), Date 21-Jun-2024 #33, Using LTE Toolbox, Version 24.2, Release (R2024b), Date 21-Jun-2024 #34, Using MATLAB, Version 24.2, Release (R2024b), Date 21-Jun-2024 #35, Using MATLAB Coder, Version 24.2, Release (R2024b), Date 21-Jun-2024 #36, Using MATLAB Compiler, Version 24.2, Release (R2024b), Date 21-Jun-2024 #37, Using MATLAB Compiler SDK, Version 24.2, Release (R2024b), Date 21-Jun-2024 #38, Using MATLAB Report Generator, Version 24.2, Release (R2024b), Date 21-Jun-2024 #39, Using Mapping Toolbox, Version 24.2, Release (R2024b), Date 21-Jun-2024 #40, Using Medical Imaging Toolbox, Version 24.2, Release (R2024b), Date 21-Jun-2024 #41, Using Mixed-Signal Blockset, Version 24.2, Release (R2024b), Date 21-Jun-2024 #42, Using Model Predictive Control Toolbox, Version 24.2, Release (R2024b), Date 21-Jun-2024 #43, Using Model-Based Calibration Toolbox, Version 24.2, Release (R2024b), Date 21-Jun-2024 #44, Using Navigation Toolbox, Version 24.2, Release (R2024b), Date 21-Jun-2024 #45, Using Optimization Toolbox, Version 24.2, Release (R2024b), Date 21-Jun-2024 #46, Using Parallel Computing Toolbox, Version 24.2, Release (R2024b), Date 21-Jun-2024 #47, Using Partial Differential Equation Toolbox, Version 24.2, Release (R2024b), Date 21-Jun-2024 #48, Using Phased Array System Toolbox, Version 24.2, Release (R2024b), Date 21-Jun-2024 #49, Using Powertrain Blockset, Version 24.2, Release (R2024b), Date 21-Jun-2024 #50, Using Predictive Maintenance Toolbox, Version 24.2, Release (R2024b), Date 21-Jun-2024 #51, Using RF Blockset, Version 24.2, Release (R2024b), Date 21-Jun-2024 #52, Using RF Toolbox, Version 24.2, Release (R2024b), Date 21-Jun-2024 #53, Using Radar Toolbox, Version 24.2, Release (R2024b), Date 21-Jun-2024 #54, Using Requirements Toolbox, Version 24.2, Release (R2024b), Date 06-Sep-2024 #55, Using Risk Management Toolbox, Version 24.2, Release (R2024b), Date 21-Jun-2024 #56, Using Robotics System Toolbox, Version 24.2, Release (R2024b), Date 21-Jun-2024 #57, Using Robust Control Toolbox, Version 24.2, Release (R2024b), Date 21-Jun-2024 #58, Using Sensor Fusion and Tracking Toolbox, Version 24.2, Release (R2024b), Date 21-Jun-2024 #59, Using SerDes Toolbox, Version 24.2, Release (R2024b), Date 21-Jun-2024 #60, Using Signal Processing Toolbox, Version 24.2, Release (R2024b), Date 21-Jun-2024 #61, Using SimBiology, Version 24.2, Release (R2024b), Date 21-Jun-2024 #62, Using SimEvents, Version 24.2, Release (R2024b), Date 17-Nov-2023 #63, Using Simscape, Version 24.2, Release (R2024b), Date 21-Jun-2024 #64, Using Simscape Driveline, Version 24.2, Release (R2024b), Date 21-Jun-2024 #65, Using Simscape Electrical, Version 24.2, Release (R2024b), Date 21-Jun-2024 #66, Using Simscape Fluids, Version 24.2, Release (R2024b), Date 21-Jun-2024 #67, Using Simscape Multibody, Version 24.2, Release (R2024b), Date 21-Jun-2024 #68, Using Simulink, Version 24.2, Release (R2024b), Date 06-Sep-2024 #69, Using Simulink 3D Animation, Version 24.2, Release (R2024b), Date 21-Jun-2024 #70, Using Simulink Check, Version 24.2, Release (R2024b), Date 21-Jun-2024 #71, Using Simulink Code Inspector, Version 24.2, Release (R2024b), Date 06-Sep-2024 #72, Using Simulink Coder, Version 24.2, Release (R2024b), Date 21-Jun-2024 #73, Using Simulink Control Design, Version 24.2, Release (R2024b), Date 21-Jun-2024 #74, Using Simulink Coverage, Version 24.2, Release (R2024b), Date 21-Jun-2024 #75, Using Simulink Design Optimization, Version 24.2, Release (R2024b), Date 21-Jun-2024 #76, Using Simulink Design Verifier, Version 24.2, Release (R2024b), Date 21-Jun-2024 #77, Using Simulink Desktop Real-Time, Version 24.2, Release (R2024b), Date 21-Jun-2024 #78, Using Simulink PLC Coder, Version 24.2, Release (R2024b), Date 21-Jun-2024 #79, Using Simulink Real-Time, Version 24.2, Release (R2024b), Date 21-Jun-2024 #80, Using Simulink Report Generator, Version 24.2, Release (R2024b), Date 21-Jun-2024 #81, Using Simulink Test, Version 24.2, Release (R2024b), Date 21-Jun-2024 #82, Using Stateflow, Version 24.2, Release (R2024b), Date 06-Sep-2024 #83, Using Statistics and Machine Learning Toolbox, Version 24.2, Release (R2024b), Date 21-Jun-2024 #84, Using Symbolic Math Toolbox, Version 24.2, Release (R2024b), Date 21-Jun-2024 #85, Using System Identification Toolbox, Version 24.2, Release (R2024b), Date 21-Jun-2024 #86, Using Text Analytics Toolbox, Version 24.2, Release (R2024b), Date 21-Jun-2024 #87, Using Vehicle Dynamics Blockset, Version 24.2, Release (R2024b), Date 21-Jun-2024 #88, Using Vehicle Network Toolbox, Version 24.2, Release (R2024b), Date 21-Jun-2024 #89, Using Vision HDL Toolbox, Version 24.2, Release (R2024b), Date 21-Jun-2024 #90, Using WLAN Toolbox, Version 24.2, Release (R2024b), Date 21-Jun-2024 #91, Using Wavelet Toolbox, Version 24.2, Release (R2024b), Date 21-Jun-2024 #92, Using Wireless HDL Toolbox, Version 24.2, Release (R2024b), Date 21-Jun-2024
s is a structure with info about base MATLAB and the 91 toolboxes that are installed in this online version. For you it will contain info about however many toolboxes you have. Since I, and online MATLAB, are on the first release of a new version, I don't know yet if it will contain update info, like if you're on update 2 or 3 or whatever of a particular year release.

Catégories

En savoir plus sur Platform and License dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by