MATLAB: Hi i am Dimitrios Gerontitis i have already written a function for a matrix A which i use to a system Ax=b where x is the unknown vector which inludes Fourier Coefficients. So i want to ask how i can fix the code to take the resuts faster

function

EDIT: code attached as a file.

Best Answer

Read about preallocation
Related Question