Hello,
For example,
function [A, B] = create_matrix(n, eq)
%your code
end
You can then create different matrices by passing different equations to the function.
Hope this helps.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!