my program:
clc;
clear all;
load('C:\Users\Documents\MATLAB\myFile\matrice_F.mat');
load('C:\Users\Documents\MATLAB\myFile\matrice_G.mat');
load('C:\Users\Documents\MATLAB\myFile\matrice_H.mat');
load('C:\Users\Documents\MATLAB\myFile\matrice_I.mat');
F = m_F;
G = m_G;
H = m_H;
I = m_I;
load('C:\Users\Documents\MATLAB\myFile\matrice_J.mat');
load('C:\Users\Documents\MATLAB\myFile\matrice_K.mat');
load('C:\Users\Documents\MATLAB\myFile\matrice_L.mat');
load('C:\Users\Documents\MATLAB\myFile\matrice_M.mat');
J = m_J;
K = m_K;
L = m_L;
M = m_M;
load('C:\Users\Documents\MATLAB\myFile\matrice_Result.mat');
N = m_N ;
O = m_O;
P = m_P;
[A,B,C,D,E] = myFun(F,G,H,I,J,K,L,M,N,O,P);
file_name = 'matrice_final.mat';
save(file_name,'A','B','C','D','E');
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
my Function:
function %matrice_return% [AA,BB,CC,DD,EE] = myFun(Q,R,S,T,U,V,W,X,Y,Z,ZZ)
AA=zeros(1,10);
BB=zeros(1,10);
CC=zeros(1,10);
DD=zeros(1,10);
EE=zeros(1,10);
for i=1:1:10
if Q(i)>1
AA(i)=R(i)*S(i);
end
if R(i)>1
BB(i)=T(i)*U(i);
end
if S(i)>1
CC(i)=V(i)*W(i);
end
if T(i)>1
DD(i)=X(i)*Y(i);
end
if U(i)>1
EE(i)=Z(i)*ZZ(i);
end
end
%matrice_return = [AA,BB,CC,DD,EE];% %%error
my problem is solved, I thank all those who gave their time to solve my problem. I did not expect that the solution is so simple!!