You are on page 1of 3
(answers) Matrix Laboratory Command is ‘cle’ Press ‘ctrl +c’ 1. 2. 3. 4. save save 5. command is SESE ELE ie] 1. fix(); it rounds each element to the nearest integer towards zero round(); it rounds to nearest decimal or integer e.g. fix(17.95) gives 17.00 round(17.95) gives 18.00 2. command is ‘disp’ or ‘display’ 3. class of variable=(‘Hello’) should be ‘Character’ 4. Predefined variables a. ans pi inf date true false eps Lj Clock 5. Use command load as load Ferme aos Exercise-Ill (answers)} Given; a=[13 5; 79 11; 379] 1. Sub-matrix Webinate > Matlab Worlshep > Day» Seazionlll 2. Magnitude of matrix [Webinars + Matlab Worksrop > Day |» Sesion New in MATLAB? See ecu for Gling Std 7 4a 4 3. Concatenation of ‘a’ and ‘sa’ [ a. Row-wise Ve] >> xovrta, 2a b. Column-wise > Webinars © MatLab Werkshop © Day > Sesion I ® New to MATLAB? See recources fr ting Stars a 5 2 8 >> cls lazsal Dinenaions of matrices being concacens A >> | Note: error is because of no. of columns in matrices are not same

You might also like