Help with MATLAB Code for Electric Circuits 2 Project

  • Context: MATLAB 
  • Thread starter Thread starter Great soul
  • Start date Start date
  • Tags Tags
    Project
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
2 replies · 2K views
Great soul
Messages
4
Reaction score
0
hi guys,
I need ur help please.

in the attachement, there is a project for a course called(electric circuits 2).
I have finished writing the equations but I do not know how to write the MATLAB code for them.

dVc/dt= (-10^6) iL(t) - (10^6) Vc(t) + (10^6) Vs

diL/dt= -10^4 iL(t) + 10^3 Vc(t) + 0Vc(t)

Please anyone knows that , write for me the code.

I will appreciate

thankx
 

Attachments

on Phys.org
I noticed that in the attachment you posted it says:
Code:
Here are some nice excuses ☺ for not doing well: [I]I do not know how to use
MATLAB... This is the first time ... The printer is not working...I had major
exams ...etc[/I]
I don't know if I'm supposed to say this or not, but I think this thread might belong in the Homework section...
 
Last edited:
^^^^
here is the problem.
I tried my best to write them in MATLAB but the instructor did not teach us how to deal with matlab.

so he expected those excuses.

I am really sorry if the place of this topic is not suitable here.