Answered
How to Save a File with a New Exetesion?
Well, I suppose you could try. But then MATLAB would be unable to access that file, since it needs to be a .mat file. If the ext...

9 years ago | 0

Answered
How to create a session for images using matlab 2013a
This just seems to be a question of good programming design, best done in advance. Think about the needs for your code. If one s...

9 years ago | 0

Answered
How to index with engineering notation
I think you are mistaken in some way. Numbers are NOT stored in engineering notation in MATLAB. They can be displayed that way. ...

9 years ago | 1

| accepted

Answered
convert fixed point to real data
In general, whenever you want to convert a numeric value in some other class into a double precision number, you use the functio...

9 years ago | 0

Answered
Interpolate Helix in 3d
If you want to interpolate the helices smoothly, download <http://www.mathworks.com/matlabcentral/fileexchange/34874-interparc i...

9 years ago | 0

Answered
MATLAB program in a script file that determines
Ok, you made a decent start, so lets see what went wrong. First, try not to use variables named error, or any other existing,...

9 years ago | 2

| accepted

Answered
A function that computes the sum of a geometric series.
cumprod is a great idea. Well done for thinking of it. You state that your function did not execute. This may be because it d...

9 years ago | 6

| accepted

Answered
What is the best optimization toolbox function to fit impulse response data?
It is often true that the problem lies not in the tool that you use, but in how you use the tool. If you use fminsearch as an...

9 years ago | 0

| accepted

Answered
Get positive eigenvalues of density matrix
You cannot compute eigenvalues for a matrix subject to a constraint. I'm sorry, but that simply does not make mathematical sense...

9 years ago | 0

Answered
Predicting a polynomial curve
Don't use a polynomial. If someone tells you to use a polynomial, don't do it. Use a spline. An interpolating spline is proba...

9 years ago | 0

Answered
How to fix error about interp1?
The fix is easy. Don't use interp1 to interpolate data that is not strictly monotone in the independent variable. After all, ...

9 years ago | 0

Answered
Easy question from a newbie
There are three possibilities. 1. You have defined a variable named abs 2. You have defined a variable named compMidpoint...

9 years ago | 1

| accepted

Answered
wolfram alpha operation in matlab
It seems silly to throw a computer at something that is done using pencil and paper. I think sometimes we forget how to think, a...

9 years ago | 0

Answered
Faster alternative for loops when calculating with different tables
If you want speed, then convert the tables to matrices. MATLAB is designed to be efficient for matrices. Tables can be nice toys...

9 years ago | 0

| accepted

Answered
How to do numerical integration using Matlab and how to plot it?
You cannot use numerical integration on a function that has unknown parameters in it! Trapz CANNOT be used here. Of course, t...

9 years ago | 0

Answered
How to normalize vector to unit length
Vector norms are linear, in the sense that for constant k and vector V, norm(k*V) = k*norm(V) So all you need do is ...

9 years ago | 3

Answered
L2 norm minimization
Using an nonlinear optimizer to solve this is overkill and completely silly, when a linear solver does it for you. Besides, with...

9 years ago | 1

| accepted

Answered
fmincon nonlinear optimization with some factorial error
Think about what you are doing. But, first, READ THE ERROR MESSAGE. "Error using factorial (line 20) N must be an array ...

9 years ago | 0

| accepted

Answered
How can I graph differential equations without initial conditions?
If all you have is a symbolic solution of a system, and you are unwilling/unable to substitute specific numerical values, then n...

9 years ago | 0

Answered
Differing computing time for simple algebraic operations
Without even looking at your code, very likely you are running into memory limitations on your computer. If some of the time, MA...

9 years ago | 0

Answered
Solve equation with tan and 4 unknown constants
No. You can't "solve it", i.e., solve for the coefficients, without using a curvefitting tool of some sort. There are many su...

9 years ago | 0

Answered
complex root of single variable nonlinear equation
Easy enough. syms x p = 21; S=sqrt((p+sqrt(p^2+4*x^2))/2); U=sqrt((-p+sqrt(p^2+4*x^2))/2); Eq=S*U^5+S^5*U+2*S^3...

9 years ago | 1

| accepted

Answered
Is there a function to find parameter(s) that cause(s) a nonlinear function's solution to be within a range?
Um, no. At least not simply. This is not really what fmincon does, as you have figured out. There will generally be infinitel...

9 years ago | 0

Answered
How to Generate a matrix of random non-integers???
Randi generates INTEGERS. You state that you want NON-integers,so real numbers? What does rand do? read the help for these thing...

9 years ago | 0

| accepted

Answered
Create a matrix from a curve
Ok. So you have a CURVE, not a polynomial. A polynomial is something with a very specific definition in mathematics. So when you...

9 years ago | 0

| accepted

Answered
How can I add an initial feasible point manually to the intlinprog command?
Sorry. You can't have everything. intlinprog does not offer that as a choice to the user.

9 years ago | 0

| accepted

Answered
Way to extend and interpolate the matrix by using thin plate spline
It is not clear in my opinion what you are asking. If your question is how should one simply resample the domain by interpola...

9 years ago | 0

| accepted

Answered
Why your question is NOT "urgent" or an "emergency"!
Nobody ever posts a question where they really don't care when it gets an answer. So, from the point of view of a person going t...

9 years ago | 2

Answered
Hi all, I am using Genetic algorithm optimization with optimtool box and I am having this error " constraints must return real values" although when using fmincon this error does not appear.
Different optimizers might choose to look in different places. After all, if they were identical in how they worked and where th...

9 years ago | 0

Answered
Simple Optimization with integer vector
First, read the help for intlinprog. Next, intlinprog is a minimizer. You want to maximize. Assuming that you really need to ...

9 years ago | 0

Load more