Write a MATLAB program for Basic commands like date, pwd, who, dir

Code:

clc;
disp('Basic Commands');
disp(' ');
disp('Today Date');
disp(date);
disp(' ');
disp('Current working directory');
disp(pwd);
disp(' ');
disp('lists of the variables in the current workspace');
who; % Do not use clear function
disp(' ');
disp('Directory List Current working directory ');

dir;

Output:


                                                         

 

No comments

Powered by Blogger.