Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

how to run a function file in for loop

3 visualizaciones (últimos 30 días)
jyoti
jyoti el 11 de Jul. de 2020
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
Dear all,
I am new to matlab. I want to run a function file in for-loop in different m-file.
suppose my function file is
function p =RCfilter(fs)
fs = 15;
-----
-----
p = sincOp.*cosOp;
end
i want to call this function in another file in for loop:
for l=1:1:4
Channel=Channel+j*alpha(l)*a(:,l)'*RCfilter(Ts - ndelay(l))-------how to call function RCfilter here;
end
please help!!
  2 comentarios
KSSV
KSSV el 11 de Jul. de 2020
for l=1:1:4
Channel=Channel+j*alpha(l)*a(:,l)'*RCfilter(Ts - ndelay(l));
end
What problem you have useinglike this?
jyoti
jyoti el 11 de Jul. de 2020
sir i am implementing the equation of mmwave channel model in which i am using raised cosine filter as a function and trying to call that fumction in equation of channel model.

Respuestas (0)

La pregunta está cerrada.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by