Posts

Showing posts from November, 2021

How to open a specific web page or specific file in MatLab? - web -- MatLab

 How to open a specific web page or  specific file in MatLab? - web -- MatLab How to open a specific web page or  specific file in MatLab? [Ans] web [Description] web It will create and open new empty url page. [<stat>,<h>,<url>]=web(<urlAddress>); [<stat>,<h>,<url>]=web(<urlAddress>,<opt_1>,...,<opt_nth>); It will open specific url page with specific url address <urlAddress> with opt_1 , ... , opt_nth. stat means that status of openin url 0 successful. 1 or 2 unsuccessful. h means a handling about web page. So you can close the web with close(h) command. url means current url web page. [NOTE] (1)If  urlAddress  is an external site,  web(urlAddress)  opens the page in your system browser.  (2)If multiple browsers are open, the page displays in the one that was most recently used. (3)  If the page opens in a system browser,  web  returns an empty URL. (4) If you do not...

How to execute System command in MatLab? - system -- MatLab

 How to execute System command in MatLab? - system -- MatLab How to execute System command in MatLab? [Ans] system [description] [<result>,<cmdout>]=system('<cmdName>') more details on: Execute operating system command and return output - MATLAB system (mathworks.com)  

How to look at system variable in MatLab? - getenv -- MatLab

 How to look at system variable in MatLab? - getenv -- MatLab How to look at system variable in MatLab? - getenv -- MatLab [Ans] getenv [description] <result>=getenv('<path>'); get system enviroment with specified path. more details on: Environment variable - MATLAB getenv (mathworks.com)

How to look at information about your computer on which MatLab is running in MatLab? - computer -- MatLab

  How to look at information about your computer on which MatLab is running in MatLab? - computer -- MatLab How to look at information about your computer on which MatLab is running in MatLab? [Ans] computer [description] <s>=computer('arch') It will return architecture of your computer on which MatLab is running. [<s>,<maxSize>,<endian>]=computer; It will return information of your computer on  which MatLab is running. s will be computer type. maxSize will be max number of element. endian will be endian format on your computer. 'L' for little endian, 'B' for big endian. learning about endianness, see: wiki page Information about computer on which MATLAB is running - MATLAB computer (mathworks.com) more details on: Information about computer on which MATLAB is running - MATLAB computer (mathworks.com)     [code] %computer clear clc help computer ; %help docs about computer. fprintf( "Hello MatLab." ); s=computer fprintf( "1...

How to look at platform in your computer in MatLab? -- MatLab

 How to look at platform in your computer in MatLab? -- MatLab [Ans] I think it is easy to guess. ismac isunix ispc [description] ismac  return true iff platform is MacOS platform. isunix  return true iff plaform is unix platform. ispc return true iff platform is Windows platform. more details on: Determine if version is for Windows (PC) platform - MATLAB ispc (mathworks.com)