is readmatrix a built-in Matlab function part over every install after 2019a?

조회 수: 10 (최근 30일)
Rives
Rives 2025년 5월 28일
편집: John D'Errico 2025년 5월 29일
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?

답변 (1개)

John D'Errico
John D'Errico 2025년 5월 28일
편집: John D'Errico 2025년 5월 28일
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
Walter Roberson
Walter Roberson 2025년 5월 28일
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
John D'Errico 2025년 5월 29일
편집: John D'Errico 2025년 5월 29일
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.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by