Answered
how to find minimum point at endpoint in matlab, please help.
Andrei's solution is also not a global minimizer. What I propose, should the function change to something crazy like: f = @...

14 years ago | 0

Answered
fminbnd finding wrong minimum point, please help
"fminbnd" gives local solutions. The curve defined by your function "f" looks like the response from an over-damped oscillator (...

14 years ago | 1

| accepted

Answered
Filling gaps in between lines to make it a continuous line
If you want to do this in 2D, then I think using "interp2" with the "spline" option will only work for input located on a regula...

14 years ago | 0

Answered
Detrending data using MATLAB detrend - how much error?
I agree with Jan. To be sure, large trends should be removed from data if you are interested in investigating the higher frequen...

14 years ago | 2

| accepted

Answered
FIt ellipse to data in polar coordinates
You may want to try modifying the code I put up on: http://www.mathworks.com/matlabcentral/answers/17847-fitting-a-sin-functi...

14 years ago | 0

Answered
time domain signal reconstruction from frequency domain
Why are you taking just half of the spectrum? You need to apply the modification to the entire frequency range (i.e., both po...

14 years ago | 2

| accepted

Answered
Fitting a sin function to a sparse dataset with a known parameter.
Having only a few data points to work with is a little worrisome, but something like this may work: function estimates = fits...

14 years ago | 0

| accepted

Answered
Plotting data
This is a possible work around. Instead of rewriting either "polyfit" or "interp1" to take into account both the known Y amplitu...

14 years ago | 1

| accepted

Answered
save matrixs in different names
It may not be efficient, but before your "for" loops you can define an empty matrix: mat = []; Then inside your "for" loop a...

14 years ago | 0

| accepted

Answered
trying to create a variable less than or equal to pi/2 but more than -pi/2
You can create a dx, such as: dx = pi/100; Then define x as: x = -pi/2 : dx : pi/2-dx;

14 years ago | 1

| accepted

Answered
Basic matrix equation Ax=B with restrictions
If "x" and "b" are column vectors, then your system of equations is like: A(1,1) * x(1,1) + A(1,2) * x(2,1) + ... + A(1,N) * ...

14 years ago | 0

Answered
Gridding and interpolate data
You could use the formulation found in the following reference: Sandwell, D. T. (1987), Biharmonic spline interpolation of GE...

14 years ago | 4

| accepted

Answered
Plotting 3D regions with constraints on x,y and z.
I have done some 3D shapes in the past. It may not be pretty, but it may be an option unless others have more efficient ways of ...

14 years ago | 0

| accepted

Answered
Sum polynomials function help?
If you mean you have polynomials with coefficients defined in x1 and x2 - for example the values in x1 would yield: y = 1*x^3 +...

14 years ago | 1

| accepted

Answered
Plotting multiple matrices in the same plot, so i can seee how the matrices develop trough time?
If you want to make a movie to use outside of Matlab, then look up "getframe" and something like "movie2avi" in the Navigation H...

14 years ago | 0

Answered
Help programing 2D conduction heat transfer in time, using finite diference method (forward euler for time, centered euler for space).
Do you get any errors... or the result is just incorrect? One problem: Your second to last "elseif" statement has "i<1&&i>5&&...

14 years ago | 0

| accepted

Answered
how to convert a accelerometer data to displacements
Doing this sort of conversion is best done in the frequency domain. This should work now. Two things weren't working before: 1...

14 years ago | 0

| accepted

Answered
Create a surface plot with colors associated to value on cell
Check out "colormap" in the Matlab Help Navigator. Right under the "Description" section, they talk about creating your own colo...

14 years ago | 2

| accepted

Answered
sound sample too short to see higher frequencies?
The Nyquist frequency is, by definition, the highest frequency you can resolve before you start aliasing the signal. This means ...

14 years ago | 1

| accepted

Answered
How can I display all elements of an array in a single row?
If the string "A" also has end of line characters, then: strf = strfind(A,sprintf('\n')); B = {''}; if ~isempty(strf) ...

14 years ago | 0

Answered
Extract windows from signals
Are you processing that window of samples inside the loop where you create your "windows" variable. Or are you saving it to do p...

14 years ago | 0

Answered
Insert & Edit Matlab figures inside Power Point presentations
Probably not. Is it not possible to run Matlab (with those figures open) in the background during the presentation? That way if ...

14 years ago | 0

Answered
Spline curves ( circular biarcs)
As long as 3 points are not on a line, then these points will fall on a circle. A method I used (a long time ago) was to create ...

14 years ago | 1

Question


Location of warning in code doesn't seem to correspond with actual warning
I have a GUI that contains listboxes, radio buttons, push buttons and other edit boxes. I have a piece of code that updates an e...

14 years ago | 1 answer | 0

1

answer