collection1

A User Contributed collection of various M-File tools.

You are now following this Submission

A User Contributed collection of various M-File tools. These tools have been tested under MATLAB 5.2.

print_models.m - Print specified Simulink models in current directory
Syntax print_models(specifier) where specifier (wildcard) can be any syntax used in dir command

close_models.m - Close specified Simulink models which are open
Syntax close_models(specifier) where specifier (wildcard) can be any syntax used in dir command

open_models.m - Open specified Simulink models which are open
Syntax open_models(specifier) where specifier (wildcard) can be any syntax used in dir command

Makemat.m - Creates a matrix of a character array with entries seperated by ASCII character. If character is omitted then white spaces are assumed as the delimiters
Example output_matrix = makemat(input_string,char(34))
Forms a matrix out of a comma delimited charatcer vector

findnear.m - In the array A find the element with value closest to the value b
Syntax [value,pos] = findnear(A,b)

remspace.m - Returns a string with only one space seperating fields.
Syntax remspace(a)

Remtab.m - Find the locations of all non printable ASCII characters (with codes < 32) and substituites them with spaces.
Syntax remtab(a)

Roundoff.m - Rounds a number(vector) to a specified number of decimal places
Format is roundoff(number,decimal_places)

Cite As

Glenn Gomes (2026). collection1 (https://www.mathworks.com/matlabcentral/fileexchange/210-collection1), MATLAB Central File Exchange. Retrieved .

Tags

Add Tags

Add the first tag.

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0