Respondida
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 = @...

más de 14 años hace | 0

Respondida
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 (...

más de 14 años hace | 1

| aceptada

Respondida
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...

más de 14 años hace | 0

Respondida
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...

más de 14 años hace | 2

| aceptada

Respondida
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...

más de 14 años hace | 0

Respondida
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...

más de 14 años hace | 2

| aceptada

Respondida
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...

más de 14 años hace | 0

| aceptada

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

más de 14 años hace | 1

| aceptada

Respondida
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...

más de 14 años hace | 0

| aceptada

Respondida
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;

más de 14 años hace | 1

| aceptada

Respondida
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) * ...

más de 14 años hace | 0

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

más de 14 años hace | 4

| aceptada

Respondida
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 ...

más de 14 años hace | 0

| aceptada

Respondida
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 +...

más de 14 años hace | 1

| aceptada

Respondida
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...

más de 14 años hace | 0

Respondida
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&&...

más de 14 años hace | 0

| aceptada

Respondida
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...

más de 14 años hace | 0

| aceptada

Respondida
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...

más de 14 años hace | 2

| aceptada

Respondida
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 ...

más de 14 años hace | 1

| aceptada

Respondida
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) ...

más de 14 años hace | 0

Respondida
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...

más de 14 años hace | 0

Respondida
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 ...

más de 14 años hace | 0

Respondida
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 ...

más de 14 años hace | 1

Pregunta


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...

más de 14 años hace | 1 respuesta | 0

1

respuesta