Statistics
2 Questions
0 Answers
RANK
174,691
of 301,432
REPUTATION
0
CONTRIBUTIONS
2 Questions
0 Answers
ANSWER ACCEPTANCE
50.0%
VOTES RECEIVED
0
RANK
of 21,280
REPUTATION
N/A
AVERAGE RATING
0.00
CONTRIBUTIONS
0 Files
DOWNLOADS
0
ALL TIME DOWNLOADS
0
RANK
of 174,555
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
Question
I have a figure window down below, I'm trying to plot both (x,y) and (x,yp) on the same graph, but only one line is showing up instead of two. I'm tried fixing it, but I can't seem to figure it out. Any ideas? Thanks.
yp = @(x) sin(x)/x; x = 1:0.2:10; y = zeros(size(x)); nsize = 0.2; a = 1; b = a+nsize; y(1)=5; for i=2:length(y) y...
6 years ago | 2 answers | 0
2
answersQuestion
How can you get this code to have the correct sum with n = 5 and 50? n = 1 works, but my code seems to have an issue with adding the different trapezoids/integrals to get the correct answer.
y = @(x) sin(x)/x; xl = 1; xu = 5; n = 5; nsize = (xu-xl)/n; trap1 = 0; a = xl; b = xl+nsize; for i=1:n trap1=tra...
6 years ago | 0 answers | 0
