Help with MATLAB Code for Electric Circuits 2 Project

  • Context: MATLAB 
  • Thread starter Thread starter Great soul
  • Start date Start date
  • Tags Tags
    Project
Click For Summary
SUMMARY

This discussion focuses on the challenges faced by a student in writing MATLAB code for an Electric Circuits 2 project. The equations provided include a differential equation for capacitor voltage (dVc/dt) and inductor current (diL/dt). The student expresses difficulty in translating these equations into MATLAB code due to a lack of instruction on MATLAB usage. The conversation highlights the need for guidance in applying mathematical concepts within MATLAB for circuit analysis.

PREREQUISITES
  • Understanding of differential equations in electrical engineering
  • Familiarity with MATLAB programming environment
  • Basic knowledge of electric circuit theory
  • Experience with numerical methods for solving differential equations
NEXT STEPS
  • Research MATLAB's ode45 function for solving ordinary differential equations
  • Learn about MATLAB's plotting functions to visualize circuit behavior
  • Explore MATLAB's Simulink for modeling and simulating electric circuits
  • Study the basics of MATLAB syntax and programming structures
USEFUL FOR

This discussion is beneficial for electrical engineering students, educators teaching MATLAB applications, and anyone seeking to enhance their skills in circuit simulation using MATLAB.

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

Physics news 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.
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 4 ·
Replies
4
Views
4K
Replies
6
Views
4K
  • · Replies 6 ·
Replies
6
Views
4K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K