Community Profile

photo

Gaëtan Poirier


Last seen: meer dan 2 jaar ago Active since 2017

Statistics

  • Thankful Level 3

View badges

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...

meer dan 4 jaar ago | 3 answers | 0

3

answers

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 ...

bijna 5 jaar ago | 1 answer | 0

1

answer

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,...

meer dan 6 jaar ago | 2 answers | 0

2

answers

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...

meer dan 6 jaar ago | 1 answer | 0

1

answer

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...

meer dan 6 jaar ago | 1 answer | 0

1

answer

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...

meer dan 6 jaar ago | 2 answers | 0

2

answers

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 ...

meer dan 6 jaar ago | 0 answers | 0

0

answers

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...

meer dan 6 jaar ago | 0 answers | 0

0

answers

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...

meer dan 6 jaar ago | 0 answers | 0

0

answers

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...

meer dan 6 jaar ago | 1 answer | 0

1

answer

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...

meer dan 6 jaar ago | 0 answers | 0

0

answers

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...

meer dan 6 jaar ago | 0 answers | 0

0

answers

Question


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

meer dan 6 jaar ago | 0 answers | 0

0

answers

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...

meer dan 6 jaar ago | 1 answer | 0

1

answer

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...

meer dan 6 jaar ago | 1 answer | 0

1

answer

Question


How do I take the average of every 50th term in a 2500x1 vector?
I have a 2500x1 vector and I'm trying to find if the average of the average of every 50th term equals the average of all 2500 va...

meer dan 6 jaar ago | 1 answer | 0

1

answer