هذا البرنامج يمكنك من ادخال 2 Matrix و من ثم اختيار العملية الحسابية التي تريد Addition Substraktion or Multiplikation
قمت بكتابة هذا البرنامج لحاجتنا دوما لهذه العمليات الحسابية
اذا كان لديكم اي اقتراح او تحسين في البرنامج اكون لكم شاكرا
ارجو الفائدة للجميع
clc
clear
close all
a=input(‘How much rows should have the Matrix ‘);
b=input(’ How much columns should have the Matrix’);
disp(‘Enter the first matrix’)
for i=1:a,
str=[‘The ‘, num2str(i) ,’. row’]
for j=1:b,
clear
close all
a=input(‘How much rows should have the Matrix ‘);
b=input(’ How much columns should have the Matrix’);
disp(‘Enter the first matrix’)
for i=1:a,
str=[‘The ‘, num2str(i) ,’. row’]
for j=1:b,
A(i,j)=input(’’);
end
end
A
disp(‘The second Matrix’)
for i=1:a,
str=[‘The ‘, num2str(i) ,’. row’]
for j=1:b,
end
end
A
disp(‘The second Matrix’)
for i=1:a,
str=[‘The ‘, num2str(i) ,’. row’]
for j=1:b,
B(i,j)=input(’’);
end
end
B
c=input(‘what do you want to do!!:
choose M for Multiplikation
A for addition
S für substraktion
’,‘s’ )
if c==‘M’;
A*B
else if c==‘A’;
A+B
else if c=='S’
A-B
end
end
end
end
end
B
c=input(‘what do you want to do!!:
choose M for Multiplikation
A for addition
S für substraktion
’,‘s’ )
if c==‘M’;
A*B
else if c==‘A’;
A+B
else if c=='S’
A-B
end
end
end