To calculate A [0]/[0] B... [4], A [4]/B function can be achieved?
CodePudding user response:
Matlab is very good
CodePudding user response:
Write a functionCodePudding user response:
A cycle, if not just two loops
CodePudding user response:
I will pick up points to
# include
Int main ()
{
Void arr_division (float * a, float * b, int arrlen);
Float a [5]={1, 2, 3, 4, 5}, b [5]=,3,4,5,6 {2};
Arr_division (a, b, 5);
return 0;
}
Void arr_division (float * a, float * b, int arrlen)
{
Temp=new float float * [arrlen];
Memset (temp, 0, sizeof (float) * arrlen);
for(int i=0; i\ [I]=[I] a [I]/b;
Printf (" a [% d]/[% d]=% b. 2 f \ n ", I, I, \ [I]);
}
}
CodePudding user response:
The