Homework Statement
This is actually part 3 of the question. Part one was to form 7 equations to form a 7x7 matrix, part 2 was to solve it, which I've done. This question is to be done with Matlab, by the way.
Part 3:
Homework Equations
Frequency response = Vout / Vin.
The Attempt at a...
Oh my, if I simply rewrite each resistor as equations in the 7 unknowns, for example, for R1: R1I1 = V0 - V1, then make V0 the subject, will that be fine? And for the 7th equation, I use I1 = I2 + I3 + I4?
I apologise for the incomplete question, I admit I was in a rush typing it out. Here is the relevant question:
You are given V0, and the values of six resistors. The seven unknowns can be treated as elements of a 7x1 matrix. Using Kirchoff's Law and Ohm's Law, write the solution to the resistor...
Homework Statement
I need to get 7 equations to make a 7x7 matrix in order to solve it. I have 4 of them, but I'm not sure how to get the voltages equations.
Homework EquationsThe Attempt at a Solution
I have got four equations so far. One is simply using KCL, I1 = I2 + I3 + I4. The other...
Thank you very much, it is working perfectly now. I manually adjusted the scale for Vout since it was very much of the graph. Once again, thank you for your help.
I've now tidied it up, but the graph doesn't look promising. The Vin graph is fine, but the Vout isn't good at all, Vout does get quite large.
This is the new code:
%Variables and constants
C = 0.001;
R = 10;
V0 = 2;
f = 50;
I = 0.000001;
dt = 0.001;
t = 0:dt:0.08;
Vin = V0 * sin(2*pi*f*t)...
I agree, I have tried debugging it although I honestly can't see what's wrong.
%Variables and constants
C = 0.001;
R = 10;
V0 = 2;
f = 50;
I = 0.000001;
dt = 0.01;
t = 0:dt:2;
Vin = V0 * sin(2*pi*f*t); %Input voltage
Vout(1) = 0; %Initial Vout
for n = 1:length(Vin) - 1,
Vout(n + 1) =...
I've updated it as follows:
The problem I've had with this is that when I write a MATLAB program to solve it, and display it as a graph, it definitely doesn't seem correct. For some reason, the voltages are incredibly small, i.e. 2x10^-16.
Homework Statement
I'm having difficulty deriving the differential equation, this is what I have so far. In order to solve it, I will be using Matlab, and I'll be using the equation dy/dx ≈ (y(x + dx) - y(x))/dx. Is my derivation correct so far?
Homework Equations
In picture.
The Attempt at a...