Recent content by Dethoven

  1. D

    Calculating the frequency response of filter with a matrix

    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...
  2. D

    Finding unknown values in DC resistor network via matrices

    I've now got 6 equations, which are hopefully right. What would be the 7th equation?
  3. D

    Finding unknown values in DC resistor network via matrices

    But I need 7 equations, from which I can form a matrix and solve.
  4. D

    Finding unknown values in DC resistor network via matrices

    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?
  5. D

    Finding unknown values in DC resistor network via matrices

    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...
  6. D

    Finding unknown values in DC resistor network via matrices

    Yes, I will be using MATLAB to solve it.
  7. D

    Finding unknown values in DC resistor network via matrices

    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...
  8. D

    Engineering Diode - RC circuit differential equation

    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.
  9. D

    Engineering Diode - RC circuit differential equation

    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)...
  10. D

    Engineering Diode - RC circuit differential equation

    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) =...
  11. D

    Engineering Diode - RC circuit differential equation

    If I post the code, would you be able to see where I'm going wrong if possible? The MATLAB language is rather basic, or at least what I've wrote.
  12. D

    Engineering Diode - RC circuit differential equation

    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.
  13. D

    Engineering Diode - RC circuit differential equation

    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...
Back
Top