Question

Why do these two different way to find slope give different results?

I have the following data x = [14 18 22 26]; y = [8.5588 14.3430 21.6132 30.3740]; and I want to find the slop...

5 Monate ago | 1 answer | 0

Question

Finding derivative using FFT

I have an array of the following form: 1 -1.77000000000000e-15 - 0.726930931000000i 2 -0.211027375000000 + 1.2000000000000...

5 Monate ago | 0 answers | 0

Question

How to calculate n-th eigenvector using eigs() function

I have a very big sparse matrix. I need all of its eigenvector and values. I can't store all of the eigenvector in one big matri...

6 Monate ago | 1 answer | 0

Question

Can we create sparse matrix of symbolic variables?

How can I create sparse matrix of symbolic variables? I have a matrix which can have only and values where and are some r...

6 Monate ago | 0 answers | 0

Question

Making a array that gives me this kind of data...?

I want to write a code with given xp, x1 and depth values that can give me value of y axis with given x. I want a code to w...

6 Monate ago | 1 answer | 0

Question

How can I solve this equation under one constrain?

I want to solve the following equation: eqn = (A - B)/(q*(A - B)^2 + 1) + (q*A^3 - 2*q*A^2*B + q*A*B^2 + A)/((A - B)*(q*(A - B)...

7 Monate ago | 0 answers | 0

Question

How can I check if a specific set of numbers are present in my array?

Let I have a 1D array A of real positive increasing integers of length N. I want to check if the elements in it have natural ord...

8 Monate ago | 3 answers | 0

Question

How can I generate an array of binary data of this form?

The N is input. I want to write a code which gives array of dimension (combin X N) where combin is all possible combination su...

8 Monate ago | 3 answers | 0

Question

Using Python functions in Matlab (eigsh function)

I want to use python scipy's eigsh() function in Matlab on Windows 10. I am using following code as an example A=[1 0; 0 1]; ...

9 Monate ago | 1 answer | 1

Question

Running, giving input and handling output of a FORTRAN program in MATLAB.

I want to compile my Fortran code so that I will be able to give inputs from MATLAB and use its output in MATLAB. The specificat...

11 Monate ago | 1 answer | 0

Question

How to calculate the derivative of any function f(x) at x=0 using finite difference method?

Let's say I have any unknown function and I know its value for some i.e. for x=1:10 is f(x)=[a b c d e f g h i j k l m] ...

11 Monate ago | 1 answer | 0

Question

Finding distribution from few moments

I have first 4 moments of an unknown distribution and I want to approximate that unknown distribution. Is there any method in MA...

etwa ein Jahr ago | 1 answer | 0

Question

How to save all workspace variables and figures in a folder?

Hello there, I want to write a code which will save all workspace variables and figures in separate folders. For example if...

mehr als ein Jahr ago | 1 answer | 0

Question

Find mean and standard deviation of a plot.

I have a plot given below: <</matlabcentral/answers/uploaded_files/107883/untitled.jpg>> How can I find mean, standard dev...

mehr als ein Jahr ago | 1 answer | 0

Question

How can I solve this ODE equation?

I have variable "Y" which is dependent on single variable "x". I want to solve following equation: d(Y(x))/dx==0 It looks ...

mehr als ein Jahr ago | 0 answers | 0

Question

How can I plot 3d plot of this data?

I have an array of size 300x3. Three columns having data of say A,B and C variables such that range of A and B is between 0 and ...

mehr als ein Jahr ago | 1 answer | 0

Question

Newton Raphson to solve set of equations

I have a set of equations: # cot(t_{ij}/2) = p* ([cot(k_i/2)]-[cot(k_j/2)]) / ([1+p]-[1-p]*cot(k_i/2)*cot(k_j/2)) # ...

fast 2 Jahre ago | 0 answers | 0

Question

How to solve these mathematical equations simultaneously?

I have three equation given as: # 2*cot (theta/2) = cot (k1/2) - cot (k2/2) # N*k1 = 2pi*lambda1 + theta # N*k2 = 2pi*l...

fast 2 Jahre ago | 1 answer | 0

Question

Convert binary to decimat

I have matrix |A| as: A= [11 101 110] 11, 101 and 110 here are in decimal system. But I want MATLAB to consider...

etwa 2 Jahre ago | 2 answers | 0

Question

How can I make a pattern of binary digits like this?

Let I have an integer |N| that gives sum of all bits in a given row (e.g. if a row is [0 0 1 1] than N=2) and another integer |M...

etwa 2 Jahre ago | 3 answers | 0

Question

How do I write code of stochastic model for this gene expression?

I’ve very little knowledge of Biology. I want to write code (in MATLAB) for “The repressilator” explained in very famous paper "...

mehr als 2 Jahre ago | 0 answers | 0

Question

How to solve coupled first order ODE using something other than ODE45?

I have 6 coupled equations: # m1'=-m1+a/(1+p3)^n+a0 # m2'=-m2+a/(1+p1)^n+a0 # m3'=-m3+a/(1+p2)^n+a0 # p1'=-b(p1-m1) #...

mehr als 2 Jahre ago | 1 answer | 0