Info
此问题已关闭。 请重新打开它进行编辑或回答。
how to run a function file in for loop
1 次查看(过去 30 天)
显示 更早的评论
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!!
回答(0 个)
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!