Answered
residual r=ax-b ∞-norm
Why would you possibly have expected to get the right answer? Was the infinity norm requested? Is it a 2-norm that you computed?...

7 years ago | 1

Answered
General Approach to Fitting dozens of curves using the same coefficients
I'll suggest that while you CAN do at least something, it is perhaps not trivial. And, sadly, the result would likely be total, ...

7 years ago | 1

Answered
Matrix dimensions must agree.
Look at line 4. y = (0.943*(x-9).^2)-(24.99*t+6113.91); We know what x is, that is, a vector. x = 9:0.1:15; But wh...

7 years ago | 0

| accepted

Answered
Trying to solve system of equations symbolically, getting zero for solution
You have what you claim to be a linear system of 7 equations in 7 unknowns. (I've not checked this claim, carefully, but it look...

7 years ago | 2

| accepted

Answered
quadgk is wrong???
Your normal distribution is one that is too narrowly defined around the mean of 350. In fact, it is effectively zero towithin to...

7 years ago | 0

| accepted

Answered
Matlab giving incorrect graph for exponential below function
Sorry. But whatever you did in Excel is apparently flat out wrong. Lets just think about this, for a moment. Does it make even r...

7 years ago | 2

Answered
What is the best way to smooth and compute the derivatives of noisy data?
The "best" way? That will be completely dependent on your data, on what you know about your data, and on what you are willing to...

7 years ago | 8

| accepted

Answered
Assignment support in Sparse Matrix
Answers is not a homework service, so I will not do your homework for you. However, this question is one that I would argue is c...

7 years ago | 0

| accepted

Answered
Average of two closed curves
Given two closed curves, say a circle and a square, I would first formulate the problem as a pair of functions in polar coordina...

7 years ago | 1

Answered
Getting a maximum from a fitted curve (smoothing spline)?
Where does the problem lie? Are you surprised that the spline does not pass through the maximum data point? So are you just aski...

7 years ago | 2

| accepted

Answered
MATLAB code that can replace the inbuilt function 'norm'
I suppose I can write a simple 1-norm code, that will work for a vector OR matrix. Thus, the 1-norm of a vector is the sum of a...

7 years ago | 0

| accepted

Answered
Fitting an Equation on to graph
Easiest is if you just use the curvefitting toolbox, OR the stats toolbox, OR the optimization toolbox. Still easy enough to us...

7 years ago | 1

| accepted

Answered
how to move a sphere until it intersect a surface?
You have a surface defined as Z = x.*exp(-0.1*x.^2 - 0.2*y.^2 + 1.5); fsurf(Z) xlabel X ylabel Y zlabel Z And a sphere, ...

7 years ago | 2

| accepted

Answered
Poisson distribution-for loop not working
It is impossible to know. What is x(1)? What is x(2)? I would suggest that you look at those numbers. For example, suppose x(1) ...

7 years ago | 0

Answered
Can I solve for multiple variables in an equation?
Sigh. It looks like this is a followup to your last question. But it is COMPLETELY different. And you cannot use randfixedsum, w...

7 years ago | 0

Answered
problem with genetic algorithm contain on linear inequality constraints
In general, this is a really bad way to create ANY matrix. Why? Because the probability of a typo approaches 100%. I do not know...

7 years ago | 0

Answered
Trying to use Wiener filter to remove blurr and noise, get a matrix of NaN, why?
You want to do this yourself. So you need to learn to fix the problem. You fix it by learning how a NaN is created, AND by learn...

7 years ago | 0

Answered
Numerical Integration on Discrete Data Sets
I might first guess that your data is not uniformly spaced. Simpson's rule does not apply to non-uniformly spaced data (thus non...

7 years ago | 3

| accepted

Answered
HELP! Checking if variable increases after each iteration is completed
Surely there are many things you can do, and your question is very confusing. Perhaps this? if abs(y) < 0.001 stuff end I...

7 years ago | 0

Answered
Trading Toolbox not working
I don't have the trading toolbox. Can we trade for it? ;-) Seriously, as far as I can tell, this is not directly part of the tr...

7 years ago | 0

Answered
Warning: Rank deficient
I assume you really wanted to just divide each element of the second matrix into the first. Use the ./ operator for that. The sl...

7 years ago | 2

| accepted

Answered
I need help to choose the initial parameter to fit this model to my data
If the model does not fit, then no amount of change to the initial parameters will suffice. I might suggest however, that you l...

7 years ago | 0

Answered
MATLAB polyfit, palyval not working correctly
p = polyfit(temp,carbonSteel,3); y = polyval(p,carbonSteel); What did you build? A model, that predicts carbonsteel, as a func...

7 years ago | 1

| accepted

Answered
Minimization problem: find the largest interval with lowest average value
Sorry. I think you are trying to solve this the wrong way, making the problem more complex than it already is. You really want ...

7 years ago | 0

Answered
How to get an equation from an already plotted graph in matlab
Just what type of "function" do you seriously expect to get from that? So 7000 data points with no simple way to describe the...

7 years ago | 0

| accepted

Answered
vectorize calculation of 3 for
It works, and is already vectorized. Could you have used meshgrid or ndgrid to do the same? Well, yes. Would it be any better? W...

7 years ago | 2

| accepted

Answered
Volume of a Curve Revolved about y-axis
Solving for b numerically as you want to do is a really bad way to write this. If b enters in in a way that is more complex, the...

7 years ago | 0

Answered
Very simple tolerance solution
If your goal is to find the first point where the tempterature exceeds 300, then write code targeted at that goal. So... What i...

7 years ago | 0

| accepted

Answered
How to calculate the Product between Gaussian and exponential distribution in Matlab?
Let me answer this, because I think you are asking the wrong question. Assume that you have two random variables, one normal (c...

7 years ago | 2

| accepted

Load more