Answered
Non-linear least squares with relative constraints on parameters
The problem as posed is easily solved using fmincon, with LINEAR inequality constraints. Use of nonlinear inequality constraints...

10 years ago | 1

| accepted

Answered
Hi, i need to find out the eigenvalues of a 8000x8000 matrix system by eig() function of matlab?? may i know the normal simulation time of the eig() function of such a huge matrix in MATLAB?
The normal time is 42. I'm not sure what the units are though. :) How can we tell you the "normal time" to compute eigenvalue...

10 years ago | 0

Answered
Random and unique number generation with constraints.
For example, are you asking to create a random matrix such that in each ROW, the elements in columns 1 and 2 must be either [0 1...

10 years ago | 1

| accepted

Answered
how can i solve this with linprog command?
I'm confused. If you want to see: x1,x2,x3,x4<=0 then why in the name of god and little green apples would you set a LOW...

10 years ago | 1

Answered
Can fzero function be used to solve intersection of step functions?
NO. These are not single valued functions. fzero simply does not apply. Instead, use a tool like <http://www.mathworks.com/ma...

10 years ago | 0

| accepted

Answered
Young's modulus?
No. You do not have the strain. You have described an out-of-plane displacement on a thin plate or a membrane. That is not how s...

10 years ago | 1

Answered
Get equation that fits my dataset
help interp1 No equation provided, but then you won't really need it.

10 years ago | 0

Answered
I feel difficulty to find the roots of peng robinson eqution given below ..can any body tell me how to find the roots with respect to volume.
If the constants are known, then just use roots! WTP? If the constants are not known, then it will get messy, since you have ...

10 years ago | 0

Answered
Generate random values from a pdf within a given interval
It does very much depend on the distribution. And, yes, one could write a book on the subject. Luckily, people already have done...

10 years ago | 2

Answered
How to fit a curved surface to 3d data points and determine normal at each point on the surface
Um, lets be serious. You don't have a curved surface. Nor do you have sufficient information to define any surface with any degr...

10 years ago | 1

| accepted

Answered
how to store a series of single rows having different sizes in to a single matrix side by side ?
You CANNOT use a regular matrix. Matrices are rectangular. So unless you are willing to pad the shorter ones with NaNs perhaps, ...

10 years ago | 0

Answered
i wrote those program but i havn't got any answer. can you help me
People need to learn to multiply. a = 0:0.001:3; %Range of values for structural excitation frequency ratio E = 0.024; %...

10 years ago | 0

Answered
How to introduce anonymous function in this code?
f = @(r,x) x.*(1+r.*(1-x)); To be honest, I'm not sure what your goal is here. It looks like you are trying to solve an equ...

10 years ago | 0

Solved


Solve the Sudoku Row
*Description* A simple yet tedious task occurs near the end of most Sudoku-solving algorithms, computerized or manual. The ta...

10 years ago

Answered
How does pdist2 work?
Because pdist2 computes the distances between ROWS of A. You computed the distance between the columns. So the distance betwe...

10 years ago | 2

| accepted

Answered
Solving trigonometric non-linear equations in MATLAB
This is not impossible to solve. The symbolic toolbox does it trivially. You can convert the result to a numeric one as I show. ...

10 years ago | 3

| accepted

Answered
My code runs well on Windows but gets errors on Mac
This is not an OS problem. This is a problem of you not having the correct inputs for the function you are using. 1./newS2 ...

10 years ago | 1

| accepted

Answered
Smoothing function not working as intended
It is often the case that one makes mistakes in what they plot, or what they feed to a canned function. Then they are surprised,...

10 years ago | 0

Answered
Least squares fit to multiple differently-sized data sets simultaneously
Yes. There is a way. Simply store the data in a cell array. Make the vectors COLUMN vectors. I was lazy here when I did that, us...

10 years ago | 1

| accepted

Answered
Adding graphic interface to my function to change my 3 variables
You will want to create the figure as a gui. Then add buttons or menus to it to allow you to interact with the figure.

10 years ago | 0

| accepted

Answered
scatteredinterpolant differs from sample points
scatteredinterpolant will ALWAYS reproduce the data exactly, although it may sometimes introduce tiny noise on the order of eps,...

10 years ago | 0

| accepted

Answered
Undefined function or variable "corUL
The crystal ball is so foggy. As hard as we try to read your mind, we cannot do so. MATLAB has at least tried to tell you wha...

10 years ago | 0

Answered
Hi, I need some help with the nested for loops. I am trying to combine the all matrices in the command window into one big matrix. Due to the matrix size is different in each iteration. What is the best way to do this? Many thanks.
The "best" way is for you to decide what it means to "combine" two matrices of different size. MATLAB does not allow catenation ...

10 years ago | 0

Answered
how to plot level curves f(x,y)=yln(x)+xln(y) through point (1,1)
You know what f(x,y) is when x=y=1. help meshgrid help contour So then it is trivial to plot the contour that goes th...

10 years ago | 1

| accepted

Answered
Solve two equations for unknown
Not possible. You have two equations, one of which contains some values for A,B,C. Assume they are not unknowns, but fixed va...

10 years ago | 0

Answered
intrgartion_problem..
integral does not have the capability to solve a problem with multiple limits of integration. The help never states that the lim...

10 years ago | 0

Answered
Why does MATLAB use only single core when function lu is used?
In general, MATLAB tries to use multiple cores only when there will be a gain from doing so. Since there is overhead in trying t...

10 years ago | 1

Answered
Random number generation but alternative
For each row, just pick a random column from the first k columns (where k is either 2 or 3, depending on your problem) to put a ...

10 years ago | 1

Answered
Why does FMINCON finds a solution even when constraints are not satisfied?
You might want to read about what the constraint tolerance means for fmincon. Constraints can be violated by a small amount in g...

10 years ago | 1

| accepted

Answered
Dealing with very high number like 2^1024 bit
2^1024 is a number that exceeds the dynamic range of a double precision number. You cannot create it using a double. There ar...

10 years ago | 2

| accepted

Load more