Question

Generating random Gamma distribution

i would like to generate random gamma distributuon with variate size = 100, alpha=10, beta = 2. but i dont want to use toolbo...

2 months ago | 1 answer | 0

Question

question related to Statistics in matlab

I would like to write a matlab code by using this definition of poisson process here, I want to simulate a poisson proce...

2 months ago | 1 answer | 0

Question

Poisson Process for 500 variates

I would like to generate a code to produce a poisson process for N = 500 variates witk k is randomly between 1 and 10 and lamb...

2 months ago | 3 answers | 0

Question

Option pricing code: a problem on dimension

I would like to generate a code to calculate option pricing by using stock prices which follows geometric brownian motion proc...

2 months ago | 0 answers | 0

Question

Error message on titled layout code

I would like to print all graphs together. For that I use the following code. titledlayout(6,1) % First plot - exponenti...

2 months ago | 1 answer | 0

Question

how can I display my result: the problem on fprintf command

I write the code as follows: expo_result = ['quantile of exponential distribution =', num2str(quantile_expo)]; normal_result ...

2 months ago | 1 answer | 0

Question

What is the meaning of the error?

Question is from Tobin's book. For part (a)'s matlab code and result, n = 100 ; h = 2/n; %n intervals, width 2/n x = -1 ...

2 months ago | 0 answers | 0

Question

write this following matrix

How can I write the following matrix I define n=100 And I generate the following code D= toeplitz ([0 1 zeros(1, n-...

2 months ago | 1 answer | 0

Question

solving PDE problem : Linear Advection diffusion equation problem

I try to learn how to solve Time dependent PDE in matlab by myself. This question is from Tobin's book. The initial cond...

2 months ago | 2 answers | 0

Question

Question on Initial value problem - error correction

Question I create a script function f = exercise711 (t, x) f = t * x.^2; end And on the command window, I wrote ...

3 months ago | 1 answer | 0

Question

Question on boundary value problem

how can I deal with this boundary value problem in matlab? since I try to learn matlab by myself, I could not ask it to an...

3 months ago | 1 answer | 0

Question

Question about initial value problem

I really do not understand what this question says to me. In those quarantina days, I am trying to learn matlab by myself by...

3 months ago | 1 answer | 0

Question

Question on initial value problem

I dont exactly understand aything from this question Isearched what is "deval" and how to use it, but it is difficul...

3 months ago | 1 answer | 0

Question

I'm getting an error related to fmincon

Question is this; My matlab code is as follows: %Define Matrices >> M = magic(5); >> P = pascal (5); % Define th...

3 months ago | 2 answers | 0

Question

find the values of polynomial to use polyfit

By using the census population data, Show that the relationship results between and the log of the population by setting . To f...

4 months ago | 1 answer | 0

Question

projectile question (calculate return time and compare them)

I Have a question from a textbook where some equations are written wrong. The correct versions of them are as follows: ...

4 months ago | 0 answers | 0

Question

All zeros for Bessel function

I dont want to find all zeros of this function by using 'bessel function' besselj(nu, Z) in matlab toolbox. I would like t...

4 months ago | 0 answers | 0