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

mehr als 14 Jahre vor | 0

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

mehr als 14 Jahre vor | 1

| akzeptiert

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

mehr als 14 Jahre vor | 0

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

mehr als 14 Jahre vor | 2

| akzeptiert

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

mehr als 14 Jahre vor | 0

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

mehr als 14 Jahre vor | 2

| akzeptiert

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

mehr als 14 Jahre vor | 0

| akzeptiert

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

mehr als 14 Jahre vor | 1

| akzeptiert

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

mehr als 14 Jahre vor | 0

| akzeptiert

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

mehr als 14 Jahre vor | 1

| akzeptiert

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

mehr als 14 Jahre vor | 0

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

mehr als 14 Jahre vor | 4

| akzeptiert

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

mehr als 14 Jahre vor | 0

| akzeptiert

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

mehr als 14 Jahre vor | 1

| akzeptiert

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

mehr als 14 Jahre vor | 0

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

mehr als 14 Jahre vor | 0

| akzeptiert

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

mehr als 14 Jahre vor | 0

| akzeptiert

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

mehr als 14 Jahre vor | 2

| akzeptiert

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

mehr als 14 Jahre vor | 1

| akzeptiert

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

mehr als 14 Jahre vor | 0

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

mehr als 14 Jahre vor | 0

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

mehr als 14 Jahre vor | 0

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

mehr als 14 Jahre vor | 1

Frage


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

mehr als 14 Jahre vor | 1 Antwort | 0

1

Antwort