What functions should be moved to basic MATLAB?

조회 수: 2 (최근 30일)
Walter Roberson
Walter Roberson 2021년 7월 5일
답변: Walter Roberson 2021년 7월 28일
What are some of the functions that you think should be moved from a toolbox into basic MATLAB?
The function should be one that you have found is used in a variety of situations including outside of purposes related to the toolbox it is found in.
Keep in mind that if a function is a major feature of its respective toolbox, then moving it into basic MATLAB is not likely to happen.
This is not a discussion of which toolboxes should be merged into basic MATLAB... that is a very different discussion!!

답변 (4개)

Image Analyst
Image Analyst 2021년 7월 5일
My choices (so far):
  1. medfilt1, a moving 1-D median filter, in the Signal Processing Toolbox.
  2. medfilt2, a moving 2-D median filter, in the Image Processing Toolbox
  3. insertText, a function to burn text into an image, in the Computer Vision Toolbox
  4. pdist2, a function to calculate distances from every point to every other point, in the Statistics and Machine Learning Toolbox.
  댓글 수: 1
Walter Roberson
Walter Roberson 2021년 7월 5일
I know that I have suggested more than once that MATLAB would benefit from a "render to buffer" interface -- but in the meantime, moving insertText (and insertShape) into main MATLAB would be a good step.
You are right, pdist2() gets used in many contexts.

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


Blue
Blue 2021년 7월 5일
Hi Walter,
Im tempted to say shaperead from the Mapping Toolbox. Yes, I know shaperead is a big part of the Mapping Toolbox but shapefiles are used in a wide variety of fields and its really hard to live without that function. Otherwise I would nominate boxplot from the Statistic Toolbox. Its a small function that could easily be in basic Matlab.
  댓글 수: 2
Walter Roberson
Walter Roberson 2021년 7월 5일
Interesting choices, and very much in the spirit of the question!
Paul
Paul 2021년 7월 5일
FWIW, base Matlab has
doc boxchart
as of 2020a. I don't think it has quite all the bells and whistles of boxplot(), but it might be close enough for what you need.

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


Walter Roberson
Walter Roberson 2021년 7월 5일
I would nominate buffer() from the Signal Processing Toolbox https://www.mathworks.com/help/signal/ref/buffer.html .
buffer() takes a vector and a length, and rearranges the vector as columns that are that long; if the last column is short it adds padding.
buffer() does get used a lot in communications contexts, but it also has uses anywhere that you do array processing, including image processing, and including feature creation for neural networks or Statistics toolbox.

Walter Roberson
Walter Roberson 2021년 7월 28일
wrapToPi() has obvious uses outside the Mapping Toolbox https://www.mathworks.com/help/map/ref/wraptopi.html

카테고리

Help CenterFile Exchange에서 Large Files and Big Data에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by