collection1

A User Contributed collection of various M-File tools.
1.6K Downloads
Updated 18 Jan 1999

View License

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 (2024). collection1 (https://www.mathworks.com/matlabcentral/fileexchange/210-collection1), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R10
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on File Operations in Help Center and MATLAB Answers
Tags Add Tags

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0.0