need solution of exercice
古いコメントを表示

10 件のコメント
Adam Danz
2018 年 12 月 8 日
I (unfortunately) don't speak the language in the text. But even if I did speak that language, there's no way I would put more time into the answer than the time put into making the question.
At the very least, type out the question so people can read it and be specific about the help you need.
Walter Roberson
2018 年 12 月 8 日
(First exercise involves calculating the sum of two matrices, and the product of two matrices. if, while and for must be used in the code.
Second exercise involves recursive calculation of maximum and minimum of two vectors.)
Walter Roberson
2018 年 12 月 8 日
KHAIF HICHEM
2018 年 12 月 9 日
madhan ravi
2018 年 12 月 9 日
What have you tried so far?
KHAIF HICHEM
2018 年 12 月 9 日
madhan ravi
2018 年 12 月 9 日
Translate the photo in English as a text
KHAIF HICHEM
2018 年 12 月 9 日
KHAIF HICHEM
2018 年 12 月 9 日
編集済み: madhan ravi
2018 年 12 月 9 日
Walter Roberson
2018 年 12 月 10 日
what problem are you observing ?
回答 (1 件)
Moussa Attati
2022 年 10 月 21 日
編集済み: DGM
2024 年 1 月 1 日
function y = ProductFun(a,b)
m = size(a,1) ; % Column
n = size(b,2) ; % Rows
if size(a,2)==size(b,1)
y = zeros(n,m);
for i = 1 : m
for j = 1 : n
y(i,j)= a(i,:)*b(:,j) ;
end
end
else
disp(' The matrice do not have the same size ')
end
end
1 件のコメント
Moussa Attati
2022 年 10 月 21 日
編集済み: DGM
2024 年 1 月 1 日
function y = SumFun(a,b)
k = size(a,1) ; % Line
j = size(a,2) ; % Column
if size(a) == size(b)
y = zeros(k,j) ;
for i = 1 : k
for u = 1 : j
y(i,u) = a(i,u)*b(i,u) ;
end
end
else
disp(' The matrice do not have the same size ')
end
end
カテゴリ
ヘルプ センター および File Exchange で Mathematics についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!