Answered

Values over 1000 use e

read matlab help on the "format" command. try "format longg".

Values over 1000 use e

read matlab help on the "format" command. try "format longg".

7 maanden ago | 0

Answered

how to create Chi squared distribution using mean and variance?

see https://www.mathworks.com/help/stats/chi-square-distribution-1.html

how to create Chi squared distribution using mean and variance?

see https://www.mathworks.com/help/stats/chi-square-distribution-1.html

7 maanden ago | 0

Answered

Not spotting where/how index exceeds number of array elements

Is this what you want? Live script vesion is attached. xmesh = linspace(0.01,0.05,5); solinit = bvpinit(xmesh, @guess); sol...

Not spotting where/how index exceeds number of array elements

Is this what you want? Live script vesion is attached. xmesh = linspace(0.01,0.05,5); solinit = bvpinit(xmesh, @guess); sol...

7 maanden ago | 0

| accepted

Solved

generate the matrix

given a value n (say 4) - generate the matrix like below; y= [0 1 2 3 4; -1 0 1 2 3; ...

7 maanden ago

Answered

Cell of character arrays

S=cell(10,1); S(1:5)={'cat'}; S(6:10)={'dog'};

Cell of character arrays

S=cell(10,1); S(1:5)={'cat'}; S(6:10)={'dog'};

7 maanden ago | 0

| accepted

Answered

How to find all letters before a character in a char variable

split(secretMes,'#')

How to find all letters before a character in a char variable

split(secretMes,'#')

7 maanden ago | 1

Answered

How to plot for for a range? showing error

Probably, t^2 and t^4 are implyed to be t.^2 and t.^4. And all the multiplications of the expressions containing t are implyed ...

How to plot for for a range? showing error

Probably, t^2 and t^4 are implyed to be t.^2 and t.^4. And all the multiplications of the expressions containing t are implyed ...

7 maanden ago | 0

Answered

Looping for storing differet matrix in different rows but in same matrix.

Before the loop, initiate Calculated_Data=zeros(numel(alpha_data),numel(alpha_data{1,1})); k=0; within the loop, use k=k+1; ...

Looping for storing differet matrix in different rows but in same matrix.

Before the loop, initiate Calculated_Data=zeros(numel(alpha_data),numel(alpha_data{1,1})); k=0; within the loop, use k=k+1; ...

7 maanden ago | 1

| accepted

Answered

Adding k discrete functions together in a "for" loop

If you do not need the "wave" contents for a further use, just drop out (k) from all its entries. If you need it for a further ...

Adding k discrete functions together in a "for" loop

If you do not need the "wave" contents for a further use, just drop out (k) from all its entries. If you need it for a further ...

7 maanden ago | 0

| accepted

Answered

Calculate n and p values for binomial distribution in Matlab

The question has nothing to do with Matlab. Just recall, that in the binomial distribution =n*p and =n*p*(1-p).

Calculate n and p values for binomial distribution in Matlab

The question has nothing to do with Matlab. Just recall, that in the binomial distribution =n*p and =n*p*(1-p).

7 maanden ago | 0

Answered

Differentiating algebraic equation fractions

syms x; simplify(diff(@(x)((-x^2-x)/(x+2)*(x+3)),x))

Differentiating algebraic equation fractions

syms x; simplify(diff(@(x)((-x^2-x)/(x+2)*(x+3)),x))

7 maanden ago | 1

| accepted

Solved

Maximum value in a matrix

Find the maximum value in the given matrix. For example, if A = [1 2 3; 4 7 8; 0 9 1]; then the answer is 9.

7 maanden ago

Solved

Determine whether a vector is monotonically increasing

Return true if the elements of the input vector increase monotonically (i.e. each element is larger than the previous). Return f...

7 maanden ago

Solved

Column Removal

Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2 3; 4 5 6]; ...

7 maanden ago

Solved

Determine if input is odd

Given the input n, return true if n is odd or false if n is even.

7 maanden ago

Solved

How to find the position of an element in a vector without using the find function

Write a function posX=findPosition(x,y) where x is a vector and y is the number that you are searching for.

7 maanden ago

Answered

Optimization on for loop and if statement

firstPlace = find ( telArray(i,1) == sortedArray(:,3) ,1 ) replaces your entire "k" loop.

Optimization on for loop and if statement

firstPlace = find ( telArray(i,1) == sortedArray(:,3) ,1 ) replaces your entire "k" loop.

7 maanden ago | 0

Answered

How to check whether any two elements are equal or not in a Nx1 array in matlab?

%% z=randi(5,10,1); % forms a sample array; replace it with an array of your interest %% [~,indx]=sort(z); k0=1; while ...

How to check whether any two elements are equal or not in a Nx1 array in matlab?

%% z=randi(5,10,1); % forms a sample array; replace it with an array of your interest %% [~,indx]=sort(z); k0=1; while ...

8 maanden ago | 1

Answered

Fitting Multiple Data sets

The package "Optimizer" can help. See: https://sourceforge.net/projects/optimizer-sovkov/

Fitting Multiple Data sets

The package "Optimizer" can help. See: https://sourceforge.net/projects/optimizer-sovkov/

8 maanden ago | 0

Answered

How to find the row numbers of similar elements

I think that the code in the attachment can help.

How to find the row numbers of similar elements

I think that the code in the attachment can help.

8 maanden ago | 0

Answered

Using existing arrays in workspace

A variable stored in the Matlab workspace is accessible from any Matlab script via just addressing its name. If you want it to b...

Using existing arrays in workspace

A variable stored in the Matlab workspace is accessible from any Matlab script via just addressing its name. If you want it to b...

8 maanden ago | 0

Answered

interp1 fails to interpolate correctly

Why do you consider it is wrong? In the plot (see the attachment) this result looks quite reasonable.

interp1 fails to interpolate correctly

Why do you consider it is wrong? In the plot (see the attachment) this result looks quite reasonable.

8 maanden ago | 0

Answered

Are there any other ways(function) of finding jacobian matrix numerically beside the function numjac

The function you describe is no more than the squared norm of the vector x, i.e. it is a scalar function of a vector argument. ...

Are there any other ways(function) of finding jacobian matrix numerically beside the function numjac

The function you describe is no more than the squared norm of the vector x, i.e. it is a scalar function of a vector argument. ...

8 maanden ago | 0

| accepted

Submitted

Optimizer_sovkov

Constructing and optimizing general mathematical and physical models

8 maanden ago | 0 downloads |

Question

Fourier transform: unnecessary data transfer in FFT

Greetings! The FFT function in Matlab is said to be adopted from the FFTW project written in C and to possesses the same perfor...

8 maanden ago | 0 answers | 0

Question

Why I cannot access Intel Fortran 2013 from Matlab 2014a to create mex files?

Greetings! My laptop computer works under Windows 8.1 64 bit. I have installed Matlab 2014a (64 bit), MS Visual C++ 2013, a...

meer dan 6 jaar ago | 0 answers | 0