MATLAB: How to use xlswrite

xlswrite

Dear all
I made three loops using P1,P2 and P3, where these values appear in a Matrix A in the loops:
for i=15:imax
for j=20:jmax
for k=25:kmax
A= [ 1 i 100
10 j 14
3 k 16];
b= function (i,j,k) %b can be calculated from a long process, but for each (i,j,k), we have a unique value of b
end;
end;
end;
My question is how I can have an excel file using xlswrite, displaying in each row in the same sheet the values of i, j, k and corresponding b. Thanks a lot

Best Answer

thanks a lot. This is what I was looking for.
It works. Great!
Related Question