Is it possible for me to get the answer of certain line in a function?
1 次查看(过去 30 天)
显示 更早的评论
Hi everyone. Can i know, is it possible to me to get the answer of certain line in this function? Now I want to check the answer for the line 'signal_interp.' can comeone help me. thanks in advance ya!
function [state]=makestatelocal(signal,hc,n_dim,delay)
%% check for inputs
if nargin <= 3
delay = 10;
end
%% time
signal_new = signal(hc(1):hc(end));
t_new = 1:length(signal_new);
t_interp = (1:n_samples)/n_samples*t_new(end);
signal_interp = interp1(t_new,signal_new,t_interp,'spline');
2 个评论
Rik
2020-4-22
You can set a breakpoint on that line to pause execution, or you can add the variable as an ouput. Is either of those what you mean?
采纳的回答
Rik
2020-4-22
Moved from comment:
You can set a breakpoint on that line to pause execution, or you can add the variable as an ouput.
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Multirate Signal Processing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!