だから私は変調しようとしているのこぎり波信号波を持つ.mファイルを作成しました。私は波形を生成する問題はありませんが、.mファイルを取得して "c"で掛けようとすると、MATLABは元の波形を返します。この特定のプログラムは、ダブルサイドバンド変調技術を使用しています。最初の部分は私の波形です。別の関数から.mファイルを操作する
function y = Signal
% Signal Summary of this function goes here
n = 23; % Number of Harmonics
t = 0:.0002:n; % incremental value
y = sawtooth(t,.2); % Wave creation
plot(t,y);
ylabel ('Amplitude');
xlabel ('Time');
title('Sawtooth Wave');
end
私は、.mファイルを呼び出す「C」を乗算し、結果の関数をプロットしようとしていますどここの次の作品です。従ってそのsig
変数を利用するべきで生成された信号を変調する
さらに操作:
function [ DSBModulation ] = DSB(DSBModulation)
% Program for DSB-AM
n = 23;
fc = 100;
t = 0:.0002:n;
sig = Signal; % this is how im trying to call the .m file so i can manipulate it
c = cos((2*pi*fc*t)); % using this as the modulating function
u(sig) = (sawtooth(t,.2)).*c; % Multiplying the signal
plot(t,u(sig)); %Displaying the Signal
end
「信号」機能の呼び出しはどこですか? – Harjatin
それはSWaveがどこにあるのでしょうか。私はその代わりに – Zanderg
コードに誤りがあります。実行可能ではありません – Harjatin