how to properly call a function in a separate m-file? - MATLAB …
https://www.mathworks.com:443/matlabcentral/answers/343934-how-to-properly-call-a-function-in-a-separate-m-file
WEBNov 8, 2018 · 1. Link. Answered: Jan on 8 Nov 2018. I have created the following function in a separate m-file called "fourierCompute.m" Theme. Copy. function [Ck, Basis, t, x] = fourierCompute (tp, xp, delta_t, t_begin, t_end, T, N) k = -N:N; w0 = 2*pi/T; Basis = exp (1i * w0 * k.' * tp); Ck = (1/T) * int (xp * (exp (-1i * w0 *k * tp)), tp, -T , T);
DA: 2 PA: 15 MOZ Rank: 54