Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
function call mistake while fft calculation
조회 수: 1 (최근 30일)
이전 댓글 표시
Hello, I am calculating harmonics, THD etc. for plotted signals. I defined a button which calls a function to calculate some parameters. This function callss another one to calcualte fft and related things.
I defiend my button like this: pb1 = uicontrol('Style','pushbutton','String','plot FFT','Callback','plot_fft(x,ASM_6ph_voltages.signals.values(:,7),max_step,f_fundamental)'); Here x is defined as time vector.
Then in plot_fft function it calculates some parameters and calls the fft_synth function.
If I push the button on the graph it doesn't work. But when I start the plot_fft function in command window, it works.
What may be the reason? Thank you very much in advance.
댓글 수: 1
Rick Rosson
2014년 10월 30일
Impossible to answer without seeing your code. Please post your code so that we can see your code. Thanks.
답변 (0개)
이 질문은 마감되었습니다.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!