Answered

How do I generate a random number with beta distribution?

You can use the function betarnd, but you'll need to do some normalizing to get it in the standard form used by MATLAB (see Beta...

How do I generate a random number with beta distribution?

You can use the function betarnd, but you'll need to do some normalizing to get it in the standard form used by MATLAB (see Beta...

alrededor de 9 horas ago | 0

Answered

Newton Raphson - saving all values and using last iteration value as initial for next

Sorry, I just realized that you wanted to save the iterations. Here's how: x = -0.001*ones(6,length(A1)); for i=1:5 x(i+1...

Newton Raphson - saving all values and using last iteration value as initial for next

Sorry, I just realized that you wanted to save the iterations. Here's how: x = -0.001*ones(6,length(A1)); for i=1:5 x(i+1...

alrededor de 11 horas ago | 0

Answered

Newton Raphson - saving all values and using last iteration value as initial for next

O.k. So here is how you do it: x = -0.001*ones(size(A1)); for i=1:5 x = x - f(x)./fd(x); end

Newton Raphson - saving all values and using last iteration value as initial for next

O.k. So here is how you do it: x = -0.001*ones(size(A1)); for i=1:5 x = x - f(x)./fd(x); end

alrededor de 11 horas ago | 0

Solved

Combinations without using nchoosek

You have to generate a matrix with all possible combinations of n elements *taken 2* at a time, *without using nchoosek(1:n,2)* ...

3 días ago

Solved

Rotate Matrix @180 degree

Rotate Matrix @180 degree Example A=[8 1 6; 3 5 7; 4 9 2], then answer would be [2 9 4;...

4 días ago

Solved

Calculate the average value of the elements in the array

Calculate the average value of the elements in the array

4 días ago

Solved

the average value of the elements

Calculate the average value of the elements in the array

4 días ago

Answered

Finding tangent plane with the max range value and z value being equal

Notice that is empty, then try this: X = -1.41:0.01:1.41; [~,idx] = min(abs(X-1)); disp(X(idx)-1) This being floating point...

Finding tangent plane with the max range value and z value being equal

Notice that is empty, then try this: X = -1.41:0.01:1.41; [~,idx] = min(abs(X-1)); disp(X(idx)-1) This being floating point...

4 días ago | 0

| accepted

Solved

Approximation of Pi (vector inputs)

Pi (divided by 4) can be approximated by the following infinite series: pi/4 = 1 - 1/3 + 1/5 - 1/7 + ... For a given numbe...

5 meses ago

Solved

Generate Square Wave

Generate a square wave of desired length, number of complete cycles and duty cycle. Here, duty cycle is defined as the fraction ...

5 meses ago

Solved

Find similar sequences

Another problem inspired by a question on the <http://www.mathworks.com/matlabcentral/answers answers> forum. Given a matrix ...

5 meses ago

Solved

arithmetic progression

I've written a program to generate the first few terms of <https://en.wikipedia.org/wiki/Arithmetic_progression arithmetic progr...

5 meses ago

Solved

Sum of series VII

What is the sum of the following sequence: Σ(km^k)/(k+m)! for k=1...n for different n and m?

5 meses ago

Solved

Sum of series VI

What is the sum of the following sequence: Σk⋅k! for k=1...n for different n?

5 meses ago

Solved

Sum of series V

What is the sum of the following sequence: Σk(k+1) for k=1...n for different n?

5 meses ago

Solved

Sum of series IV

What is the sum of the following sequence: Σ(-1)^(k+1) (2k-1)^2 for k=1...n for different n?

5 meses ago

Solved

Sum of series III

What is the sum of the following sequence: Σ(2k-1)^3 for k=1...n for different n?

5 meses ago

Solved

Sum of series II

What is the sum of the following sequence: Σ(2k-1)^2 for k=1...n for different n?

5 meses ago

Solved

Sum of series I

What is the sum of the following sequence: Σ(2k-1) for k=1...n for different n?

5 meses ago

Solved

Sum the Infinite Series

Given that 0 < x and x < 2*pi where x is in radians, write a function [c,s] = infinite_series(x); that returns with the...

5 meses ago

Solved

Golomb's self-describing sequence (based on Euler 341)

The Golomb's self-describing sequence {G(n)} is the only nondecreasing sequence of natural numbers such that n appears exactly G...

5 meses ago