![]() ![]() To open a file that is not on the MATLAB path, enter the complete file specification. If you have a copyfile.m file in a directory that is before toolbox\matlab\general on the MATLAB path, then open opens that file instead.Įxample 2 - Opening a File Not on the Path MATLAB opens the copyfile.m file that resides in toolbox\matlab\general. For example, create a function, openlog, if you want a handler for opening files with file extension. open('filename.xxx') calls the openxxx function it finds on the path. ![]() You can create your own openxxx functions to set up handlers for new file types. If no such file name exists, then open displays an error message. If more than one file with the specified filename, name, exists on the MATLAB path, then open opens the file returned by which ('name'). If name does not exist, then open checks to see if name.mdl or name.m are on the path or in the current directory and, if so, opens the file returned by which('name'). Open name.xxx by calling the helper function openxxx, where openxxx is a user-defined function Open the corresponding M-file, name.m, if it exists, in the M-file Editor Open MAT-file and store variables in a structure in the workspace Open array name in the Array Editor (the array must be numeric) ![]() The specific action taken upon opening depends on the type of object specified by name. Opens the object specified by the string, name. Open (MATLAB Functions) MATLAB Function Reference ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |