フィルターのクリア

CT & Discrete-Time Systems Series RC Circuit

2 ビュー (過去 30 日間)
Kutlu Yigitturk
Kutlu Yigitturk 2021 年 4 月 22 日
I have a question as shown in the figure above. I wrote the code below but I know it's not correct. How do I fix this problem.
clc;
clear all;
close all;
syms R C y t
input = 'heaviside(t) - heaviside(t-1)'
y = dsolve(['Dy + 1/R/C*y = 1/R/C*',char(input)], 'y(0) = 0');
g = subs(y,[R C], [1e5 1e-6]);
h = ezplot(g,[-2 6]);
set(h,'linewidth',3)
axis([-2 6 -0.5 1.2])
grid
function y = heaviside(x)
y = zeros(size(x));
y(x > 0) = 1;
y(x == 0) = NaN;
end
Thank you for your help.

回答 (0 件)

カテゴリ

Help Center および File ExchangeMathematics についてさらに検索

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by