필터 지우기
필터 지우기

Is it possible for me to get the answer of certain line in a function?

조회 수: 1 (최근 30일)
redroses
redroses 2020년 4월 22일
편집: redroses 2020년 4월 22일
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
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?
redroses
redroses 2020년 4월 22일
yeayyy, I already add the variable as an output. and it works! thanks a lot! how to accept your answer ya?

댓글을 달려면 로그인하십시오.

채택된 답변

Rik
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개)

카테고리

Help CenterFile Exchange에서 Multirate Signal Processing에 대해 자세히 알아보기

제품


릴리스

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by