Community Profile

### Simon Fraser University

11 total contributions since 2015

View details...

Contributions in
View by

Question

normalize a histogram in pdf mode
I am trying to normalize my histograms so that my gaussian curves can fit over them (right now, the histograms and gaussians are...

3 years ago | 1 answer | 0

### 1

Question

Bisection method- code stops after one iteration
Hi, my code doesn't seem to continue beyond the first iteration of the bisection method in my loop. I also am not getting the ri...

4 years ago | 1 answer | 0

### 1

Question

Finding product product of elements in a vector
I am using a vector whose length I want to vary. So supposing the vector is x = [f(1), f(2), f(3), ..... f(n)]. How do I find th...

4 years ago | 1 answer | 0

### 1

Question

Plotting approximation of pi- storing outputs of loops
Hi. I am trying to approximate pi. Right now my plot isn't working. This is my code so far. The diagram gives me an option wheth...

4 years ago | 0 answers | 0

### 0

Question

How to plot Gaussian in purple
Hi. I am plotting several Gaussians. I want to make the black line be purple instead, with a linewidth of 1.5. But I don't know ...

4 years ago | 1 answer | 0

### 1

Question

Projectile Motion 2D plot without drag
Hi all. I am plotting a 2D plot of projectile motion, where speed and height are on the y axis and time is on the x axis. My spe...

4 years ago | 1 answer | 0

### 1

Question

Polynomial interpolation with chebyshev nodes
I can't get my interpolation to work. I am getting asymtotes in my plots and I don't know why. How can I fix this code so that I...

4 years ago | 0 answers | 0

### 0

Question

tic toc in subfunctions
I have the following code. I need to use tic toc to find out how much faster one loop runs versus the other. So far I have done ...

4 years ago | 1 answer | 0

### 1

Question

searching for a number in a list
Hi, I made a code below which I need to use to find a value in a list L. Supposing I have the following list L = [1 3 5 9 2 4 0 ...

4 years ago | 2 answers | 0

### 2

Question

Making polynomial in matlab causes infinite loop
I am trying to make a polynomial function for several different coefficients. The problem is, something is wrong with my loop an...

4 years ago | 1 answer | 0