is readmatrix a built-in Matlab function part over every install after 2019a?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Can I assume that all functions in ...toolbox\matlab\iofun (e.g. readmatrix) are built-in Matlab and will be installed by default in any installation for that Release number?
0 Kommentare
Antworten (1)
John D'Errico
am 28 Mai 2025
Bearbeitet: John D'Errico
am 28 Mai 2025
NO. Not for ANY release number. Some of those functions may have been introduced in different years, different releases. And if the function you want did not exist in an older release, then you don't get to use it.
You can learn when a function was introduced from the docs. I see that detectImportOptions was introduced in R2016b. But callSoapService was introduced before R2006a, which is pretty much beyond the view of almost every user out there. Does ANYONE still use a release that old? ;-)
It is true that future releases will all see all of those functions, and possibly more, as new utilities are introduced,. At least this is true unless some function is declared obsolete and is superceded. In that case, they give you a LOT of time to prepare for the replacement, lots of advance warning before anything disappears.
Anyway, if you have some specific function you need to be there, then you should just check the docs, and look for the release date for those functions. They always put it down at the bottom.
4 Kommentare
Walter Roberson
am 28 Mai 2025
fscanf() happens to be implemented in C++ code.
readmatrix() happens to be implemented largely in .m files, together with some C++ code.
readmatrix() is much more complicated than fscanf()
John D'Errico
am 29 Mai 2025
Bearbeitet: John D'Errico
am 29 Mai 2025
Built-in functions are still part of MATLAB. It is just they are not provided as MATLAB code. For example, the function chol is a built-in function, but it is completely part of MATLAB, and always will be so. (I don't think I'm going out on a limb there.) The designation built-in does not mean a toolbox is required to get that function.
Yes. Readmatrix is part of MATLAB, and will stay that way. It was introduced in R2019a, as you have observed, and you need not worry about it disappearing, nor do you need an extra toolbox to get that function.
Siehe auch
Kategorien
Mehr zu Startup and Shutdown finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!