`Z=[ 1 3 4 ;5 3 1;3 3 3];a=1;Qa=example(a,Z);ss=Qa(1)+Qa(2); %=====> I CAN'T get both matrix data a+Z and a*Z `

%%

%%%my function building as such

function dBB=example(a,Z) dBB(1)= Z+Z; dBB(2)=Z+Z+Z+Z+Z; %%%%%%

# MATLAB: How to get matrix data from function ,anyone help me

matlab functionmatrix

## Best Answer