






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!







%Abdullah Al-amin Ridoy % clc clear all x=sqrt(144)+(log10(100))^2+exp(3)-asin(0.5)+csc(pi/6)-abs(-5) x =
Published with MATLAB® R2017a %Abdullah Al-amin Ridoy % clc clear all G=inputdlg('Enter a matrix','input'); M=str2num(G{:})
%Abdullah Al-amin Ridoy % clc clear all A=[1 1 1 1 ; 1 1 1 - 1; 1 1 - 1 1; 1 2 - 2 1]; B=[1; - 1; - 3; - 2]; X=inv(A)*B X =
%Abdullah Al-amin Ridoy %
clc clear all p=[11 17 23 31 41]; n=length(p); for i=1:1:n for j=1:1:n q(i,i)=p(i); end end fliplr(q) ans = 0 0 0 0 11 0 0 0 17 0 0 0 23 0 0 0 31 0 0 0 41 0 0 0 0
count=0; for i=1: for j=1: count=count+1; b(count)=a(i,j); end end disp(b) 19 2 3 4 55 6 7 8 91 Published with MATLAB® R2017a
%Abdullah Al-amin Ridoy % clc clear all m=[11 14 21 44 57]; n=length(m); for i=1:1:n
u(i,i)=m((n+1)-i); end u u = 57 0 0 0 0 0 44 0 0 0 0 0 21 0 0 0 0 0 14 0 0 0 0 0 11 Published with MATLAB® R2017a
%Abdullah Al-amin Ridoy % clc clear all