フィルターのクリア

Problem getting array after multiplication/division

1 回表示 (過去 30 日間)
monkey_matlab
monkey_matlab 2016 年 3 月 15 日
回答済み: Adam 2016 年 3 月 15 日
Hello, in the code below, I wanted to get an array for "Hp" for all the values of "f". I am only getting 1 value for "Hp". Can you tell me what I am doing wrong?
R1 = 10000;
R2 = 10000;
C = 1*10e-6;
f = 0:1000;
f1 = 1/(2*pi*R1*C);
f2 = (R1 + R2)/(2 * pi * R1 * R2 * C);
K = 1;
%lgspA = logspace(0,5,1000);
Hp = K * (1 + (f./f1))/(1 + (f./f2));
plot(log10(f),log10(Hp));

採用された回答

Adam
Adam 2016 年 3 月 15 日
Hp = K * (1 + (f./f1))./(1 + (f./f2));
You are missing the . in yours when dividing your two terms.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCreating and Concatenating Matrices についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by