Answered
Matrix equation solution keep giving only structure of the array not the value
As I explained in my comment to @Vasishta Bhargava, this is a problem with 3 equations, but only 2 unknowns. It is known as an o...

6 years ago | 1

Answered
CurveFit on Vector Data Points
The problem is, your data appears to be highly noisy. You can use simple linear interpolation to interpolate the data. KSSV hs ...

6 years ago | 0

Answered
Complex answer of acos function
The acos of a number that exceeds 1 or -1 is complex. This is the ONLY way that can happen, at least unless you have defined you...

6 years ago | 0

| accepted

Answered
How do I iterate if I have points from [-20,5,0] to [20,5,0]?
First, learn to use MATLAB as a matrix language. That often means not thinking in terms of loops. s_vector=[-20,5,0]; % line st...

6 years ago | 0

| accepted

Answered
If I take 10 points in a high resolution rectangular grid is there some code or some function in matlab that displays volumetric object.?
Is there some code that can automatically take some small set of points (worse, possibly with some noise? You did mention smoot...

6 years ago | 0

Answered
Multiple errors with derivative calculator code
This is not valid syntax in MATLAB. It may be so in some other language. But not so here. f() = str2func(['@(x)', 'g']); As yo...

6 years ago | 1

| accepted

Answered
Can you trust in Matlab exact arithmetics ?
Trust is a difficult thing. Blind trust is a bad idea, as if you do anything you want, you may be mis-using the tools. And if yo...

6 years ago | 0

Answered
How can I solve the set of liner equations using lsqlin?
IF it is ok to violate the sum to 1, then do as David has shown. The solution he wrote will allow that equation to be violated. ...

6 years ago | 0

| accepted

Answered
3/8 Simpson's Rule
First, learn the basic MATLAB functions. That is, exp is used as exp(x), not exp^x. The latter makes no sense in MATLAB. exp is ...

6 years ago | 1

Answered
simulate a dice throw
Why not? Remember that numbers are just symbols. It is how you choose to interpret those symbols that matters. If you want to as...

6 years ago | 0

Answered
Numerical Methods Backward Difference
I won't directly do your homework for you. I'll show you how you might solve for the coefficients of a formula you should alread...

6 years ago | 1

Answered
SVD of each row of a matrix
Sorry, but this seems to make little sense, since most of that set of singular value decompositions will be trivial. Or, perhaps...

6 years ago | 0

Answered
Matlab reads file with different order
Must I point out the data in that file are arranged as: data = textread('RQ_par.txt') data = 0.9011 ...

6 years ago | 0

Answered
rref gives an impossible answer
P = [0.9871 0.0027; 0.0129 0.9973]; A = P - eye(2); A A = -0.0129 0.0027 ...

6 years ago | 2

Answered
How do I sink matlab to my computer to be able to download matlab files?
Whenever I try to sink my computer, it gets wet because I have just dunked it in water. And gettiing my computer wet tends to me...

6 years ago | 0

Answered
Hello, Could you please provide the export control number (ECCN) for Matlab. It is needed in order to purchase Matlab licenses by our company.
Answers is not customer service. Contact Mathworks directly. https://www.mathworks.com/company/aboutus/contact_us.html?s_tid=gn...

6 years ago | 0

Answered
For Cody challenges, should the best solutions be based on the least number of characters used in one's code?
Cody has some unusual aspects. I hate to call the idea flawed, but there are some aspects I would like to change, with absolutel...

6 years ago | 5

Answered
Loosely Constrained Least Squares Solution
Your concept of what a constraint tolerance means is wrong. and loose equality constraints are not something you can set. Inste...

6 years ago | 1

| accepted

Answered
about newton Bionomial Expansion
What is the problem? Why not try it? Make an effort. You will learn by doing so. If we need to teach you everything in this, we ...

6 years ago | 0

Answered
How to I find X unique combinations (order doesn't matter) of X numbers within an array of X numbers.
Youtr title is still far too vague to provide an answer, but the comment you made may be sufficient. You have lets say 10 numb...

6 years ago | 1

Answered
why do i get this nan
Time to learn to use logs. Yes, I know you probably know what a log is. But you appear not to know why you need to use them here...

6 years ago | 1

Answered
compute the approximation of pi
Now that Steven has had his answer accepted, and you should have finished your work, I'll add an answer to expand on the ideas i...

6 years ago | 2

Answered
Entropy calculation at base 10
Um, think about what entropy means, at least in a mathematical form. It is just a logarithm. https://en.wikipedia.org/wiki/Entr...

6 years ago | 0

| accepted

Answered
Calculate the length of the major axis of an ellipse using its perimeter
You can't. That is, knowing ONLY the perimeter of an ellipse, you CANNOT know the major axis. That is, I can give you two ellip...

6 years ago | 0

Answered
Quasi-Newton method for optimization
If all you need to do is solve the linear system of equations, subject to the EQUALITY constraint, use LSQLIN. That is the tool ...

6 years ago | 1

Answered
How to get linearly independent subset of matrix columns in a high-dimensional matrix
You have thousands of columns, and therefore probably thousands of rows. Why does it not seem surprising that big problems are c...

6 years ago | 0

| accepted

Answered
How to determine the functions used in a long matlab script?
NO. Don't transfer a long list of functions to one folder. That is a really bad idea. Put the directories that contain your fi...

6 years ago | 0

Answered
Using vpasovle to search along a line
It sounds as if you know the solutions lie along a line, but you don't know the slope of that line, that x and y must be proport...

6 years ago | 0

Answered
model for fitting polynomial of degree 3
Just read the help. x = rand(10,1); >> y = rand(10,1); >> D = dataset(x,y); >> fitlm(D,'poly3') ans = Linear regression m...

6 years ago | 0

| accepted

Answered
Permutation of rows with specfic conditions
This is easy enough. But you need to recognize that all that matters is the matrix C. A really has nothing to do with it. You n...

6 years ago | 0

Load more