Community Profile

photo

Luqman Saleem


Active since 2017

Statistics

  • Thankful Level 3

View badges

Content Feed

View by

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 years ago | 1 answer | 0

1

answer

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 years ago | 0 answers | 0

0

answers

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

5 years ago | 1 answer | 0

1

answer

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

5 years ago | 0 answers | 0

0

answers

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

5 years ago | 1 answer | 0

1

answer

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

5 years ago | 0 answers | 0

0

answers

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

5 years ago | 3 answers | 0

3

answers

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

5 years ago | 3 answers | 0

3

answers

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

5 years ago | 1 answer | 1

1

answer

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

5 years ago | 1 answer | 1

1

answer

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

5 years ago | 1 answer | 0

1

answer

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

5 years ago | 1 answer | 0

1

answer

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

6 years ago | 1 answer | 0

1

answer

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

6 years ago | 1 answer | 0

1

answer

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

6 years ago | 0 answers | 0

0

answers

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

6 years ago | 1 answer | 0

1

answer

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

6 years ago | 0 answers | 0

0

answers

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

6 years ago | 1 answer | 0

1

answer

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

6 years ago | 2 answers | 0

2

answers

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

6 years ago | 3 answers | 0

3

answers

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

7 years ago | 0 answers | 0

0

answers

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

7 years ago | 1 answer | 0

1

answer