How to plot using finite diff. method
8 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
have two differential equations:
1st equation d^2P/dy^2 = k1(y)-k2 k1 and k2 are constants given, Lower Boundry y=0 P=80 - Upper Boundry y=80 P=120
2nd equation d^2P/dy^2 = -k1(y^2)+k2(y)-k3 k1,k2 and k3 are constants given, lower boundry y=0 P=30, upper boundry y=90 p=50
help with MetLab Code to plot the above functions using finite difference method for y=0 and y=80 increments of 1.
thank you
8 Kommentare
Walter Roberson
am 13 Apr. 2021
Hundreds of people have posted finite difference code, covering a number of different finite difference approaches. There is a File Exchange contribution giving explicit code for 5 different approaches. You did not say anything about which approach you needed, and you did not ask any specific question, and you did not post any code. None of us has the time to go back and forth with you asking you questions about what exactly you need and what you know already, and none of us has the time to build a custom tutorial for you on all the possible approaches in hopes that you might find one of them useful.
If you want to interpret "people who ask vague questions after being reminded to ask specific questions, end up getting vague responses" as "I guess I will not be getting any help here also", then that's up to you. You could have, for example, picked out two or three of the many searches you did, and posted them (or links to them), and asked "In this code, I do not understand why they... (whatever)?" or "In that code, I do not understand which part is calculating the derivative?" then that would give us something concrete to go on.
Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
