Community Profile # Gaëtan Poirier

Last seen: 1 year ago Active since 2017

#### Statistics

• #### Content Feed

View by

Question

I have multiple equations that depend on a specific value and would like matlab to ask the user which equation to use and what the specific value is and then print that value but it's giving me trouble.
I would like to start by saying I am utterly miserable at coding (somewhat of a beginner) and the following might be the worst t...

3 years ago | 3 answers | 0

### 3

Question

Finding every point of intersection between any number of circles and ellipses centered at the origin
I'm trying to find each possible coordinate point of intersection between any number of circles and any number of ellipses, all ...

3 years ago | 1 answer | 0

### 1

Question

How can I create a matrix of black and white blocks given probability p of being black or white?
I want to create a 10x10 matrix of 0's. There is a probability p of the 0 becoming a 1. If the block is a 1, the block is black,...

5 years ago | 2 answers | 0

### 2

Question

How do I change it so there are multiple "starting matrices?"
I have a fire percolation problem which simulates a fire spreading along a 100x100 lattice. Currently, I have it so the starting...

5 years ago | 1 answer | 0

### 1

Question

How could I find the integral of a function given this code?
I'm having trouble with a simple Monte Carlo integration code. It is as follows: %define variables Fun = @(x) x^2; a...

5 years ago | 1 answer | 0

### 1

Question

How could I translate this Python code to Matlab?
I have this python code that I would like to convert to Matlab code. Could anyone help me understand what is going on and help c...

5 years ago | 2 answers | 0

### 2

Question

Could anyone help translate this Python code to Matlab code?
I would appreciate if someone could help me translate the following Python code to Matlab code: import random N = 10 ...

5 years ago | 0 answers | 0

### 0

Question

How do I integrate a definite integral using the metropolis algorithm?
I don't quite understand how I would go about this? I understand that I have a random walk that samples the function, given by...

5 years ago | 0 answers | 0

### 0

Question

How do I sample a function using the metropolis algorithm?
f(x)=exp(-x/lambda)*1/lambda Write a program to sample f(x) by the Metropolis algorithm. Start from any position you like. Eq...

5 years ago | 0 answers | 0

### 0

Question

How would I start this problem?
We consider again the one-dimensional version of the drunkard problem. This time he starts out at position x (e.g., x=10), and t...

5 years ago | 1 answer | 0

### 1

Question

Need help with a problem
There is a program I have one part I have to modify, could anyone help with this? function y = run (lambda, n_mea, n_smpls...

5 years ago | 0 answers | 0

### 0

Question

Normalize a histogram modification
What do I need to put in to normalize the distribution? function y = mkhist(lambda, n_mea, n_smpls_per_mea) %progr...

5 years ago | 0 answers | 0

### 0

Question

Help on a Histogram function–need to modify one line
Histogram function, need to modify one line. *[EDITED, Jan, copy righted code removed]*

5 years ago | 0 answers | 0

### 0

Question

Problem with a lab
I have a lab problem. It says to write a program to iteratively generate points in two-dimensional space using the following rul...

5 years ago | 1 answer | 0

### 1

Question

Help on a problem
I have this problem and I'm wondering if anyone can help me to figure it out. It goes as follows: write a program to iterativel...

5 years ago | 1 answer | 0