plot signal - adjust axis
2 ビュー (過去 30 日間)
古いコメントを表示
i have signal between |f|<100 Hz
and i need to present it the range of |f|<125 Hz
MY PROBLEM is that i want to have a continuity between the output signal to the outrange 100<f<125 to be a solid line
in this range the output signal doesnt exist so it just cutted with no bound to x axis
IN SIMPLE WORDS
to add contiuetinity (yellow line to the x axis)
thanks for help!
0 件のコメント
回答 (1 件)
Chunru
2024 年 4 月 15 日
% Test data
f = (-100:1:100);
p = randn(size(f)); p = p-min(p)+1;
% extropolate data
fe = [-125 f 125];
pe = interp1(fe, [0 p 0], fe, 'linear', 'extrap');
plot (fe, pe)
axis tight
grid on
2 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!