photo

Alisher Ashimov


Active since 2017

Followers: 0   Following: 0

Statistics

MATLAB Answers

2 Questions
0 Answers

RANK
187,920
of 301,186

REPUTATION
0

CONTRIBUTIONS
2 Questions
0 Answers

ANSWER ACCEPTANCE
0.0%

VOTES RECEIVED
0

RANK
 of 21,188

REPUTATION
N/A

AVERAGE RATING
0.00

CONTRIBUTIONS
0 Files

DOWNLOADS
0

ALL TIME DOWNLOADS
0

RANK

of 173,292

CONTRIBUTIONS
0 Problems
0 Solutions

SCORE
0

NUMBER OF BADGES
0

CONTRIBUTIONS
0 Posts

CONTRIBUTIONS
0 Public Channels

AVERAGE RATING

CONTRIBUTIONS
0 Discussions

AVERAGE NO. OF LIKES

Feeds

View by

Question


I need to solve the second order differential equation using Euler method. I am not sure how to deal with matrices and their dimensions. The code gives an error in using vertcat. The equation is in the attached file.
T0 = [1; 5]; % Initial Condition (vector) h = 0.2;% Time step x = 0:h:5; % t goes from 0 to 2 seconds. ...

9 years ago | 1 answer | 0

1

answer

Question


I am trying to use the Crank Nicolson method for solving second order equation. But there is something wrong with the code. I am not very good at Matlab.
A = [ 0 1; -1 -0.1]; h = 0.1; t = 0:h:10^2; y0 = [-pi;1]; n=t/h; ...

9 years ago | 1 answer | 0

1

answer