Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

how to run a function file in for loop

조회 수: 3 (최근 30일)
jyoti
jyoti 2020년 7월 11일
마감: MATLAB Answer Bot 2021년 8월 20일
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
KSSV
KSSV 2020년 7월 11일
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 2020년 7월 11일
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.

답변 (0개)

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by