%-- 4/17/2020 2:20 PM --% x = 1 + 2 x y clear x x = 1+3 y = 5 z = 45 clear x = 1+3 y = 5 z = 45 clear all clc x = 1+3 z = 45 whos x = [1 2; 3 4] whos v = 12 v = 12; clc s = 3; s=3; yildiz = 4; yil diz = 4; dime = 2 + 2 +2 +2 +2 +2 +2 +2 +2 +2 +2 +2 +2 ... +2 +2 +2 +2 +2 +2 +2 +2 +2 +2 +2 +2 +2 +2 +2 +2 +2 +2 +2 +2 +2 +2 +2 +2 +2 +2 +2 +2 +2 +2 +2 +2 +2 +2 +2 +2 +2 +2 +2 +2 +2 +2 +2 +2 +2 +2 +2 +2 +2 +2 +2 +2 +2 +2 +2 +2 +2 +2 +2 +2 +2 +2 +2 +2 +2 +2 +2 +2 +2 + +2+2+2+2+2+2+2+2+2+2+2... dime = 2+2+2+2+2+2+2+2+2+2+ ... 2+2+2+2+2+2+2+2+2+2+2+2+2+2+2+ ... 2+2+2+2+2+2+2+2 name = 10; surnam=45; age = 33; name name, surnam, age clc name = 10; surnam=45; age = 33; x = 1 1 = x 1 == x 0 == x a = 1 b = 2 c = 3 h = 4 x = bach x = b*a*c*h x = 1. 4567773454356 x = 1.4567773454356 x = [1 2; 3.4 pi] format long x = [1 2; 3.4 pi] format short x = [1 2; 3.4 pi] x = [1 2; 3.4 2] x =2 x = [1 2; 3 2] format loose x = [1 2; 3 2] help format format compact x = [1 2; 3 2] format loose x = [1 2; 3 2] format compact clc help c clc help plot clc myfirst clear clc x = [1 2 3 4 5 6 7 8]; y = [1 2 3 5 8 13 21 34]; whos plot(x,y) close help plot clc help plot plot(x,y,'--r>') plot(x,y,'-k*') close all x y clear y clc x y = x^(1/2) z = [1 2 3] z^2 z.^2 y = x.^(1/2) plot(x,y) x = [1 2 3 4 5 6 7 8 9 10 20 30 40 50 60 70 100 200 300 500 1000 2000 5000 10000]; y = x.^(1/2) plot(x,y) x = 1:5:10000; i = 1:1:3 x = 1:5:10; x x = 1:5:10000; y = x.^(1/2) clc plot(x,y) x = 1:5:100000; y = x.^(1/2); plot(x,y) x = [1 2; 3 4 ] x^2 *x x*x x = [1 2 3] x^2 x*x x = [1 2 3 4 5]; y = 3 + x^2 y = 3 + x.^2 clc clear all a = input('base length (cm): '); 10 ha = input('heinght (cm): '); 5 area = a*ha/2; disp(area) area disp('area is the following:', area) disp('area is the following:'; area) fprintf('\n The area of the triangle (cm^2): %d \n', area) clc ex6_1 100 adsf clear all clc Ex6_21 3 Ex6_21 3 Ex6_21 3 Ex6_21 8