Réponse apportée
iFFT for Band-pass Measurement
You cannot reconstruct your timeseries unless you have either: 1. Complex values for both positive and negative frequencies. ...

environ 14 ans il y a | 0

Réponse apportée
Square wave Chirp
Here is an example: signal_length = 20; % length of signal in seconds wave_length = 2*pi; % wavelength of rectangle pulse in ...

environ 14 ans il y a | 1

Réponse apportée
Constraining a fitted curve
Here is an example using "pchip": a = sort(rand(1,15),'ascend'); b = sort(rand(1,15),'ascend'); x = a(1):0.001:a(end); y...

environ 14 ans il y a | 0

Réponse apportée
SDOF FRF (FFT) Magnitude discrepancy
I ended up copying your code and running with some modifications. Looks like it will work a little better if you make the sugges...

environ 14 ans il y a | 0

Réponse apportée
code to implement FSK on sin wave
Someone else did the work for you here: <http://www.edaboard.com/thread133432.html>

environ 14 ans il y a | 0

| A accepté

Réponse apportée
deploytool
You need the MATLAB compiler to do this

environ 14 ans il y a | 0

| A accepté

Réponse apportée
How to show partial legend in figure
To take your first example: h = zeros(1,3); h(1) = plot([1:10],'Color','r','DisplayName','This one');hold on; h(2) = plot...

environ 14 ans il y a | 14

| A accepté

Réponse apportée
genetic programming
Maybe check this out: <http://www.mathworks.com/matlabcentral/fileexchange/13680>

environ 14 ans il y a | 0

Réponse apportée
Check if matrix has two identical rows
If you want to remove identical rows, then B = unique(A,'rows'); As a check, if size(B) ~= size(A), then you have at least two...

environ 14 ans il y a | 1

| A accepté

Réponse apportée
FRF magnitude calculation
Or... if you want the magnitude and the input data is really just two columns of numbers(second column not specifically formatte...

environ 14 ans il y a | 0

Réponse apportée
Changing color of single bars in a bar plot
See Jonathan's answer here: <http://www.mathworks.com/matlabcentral/answers/20860-how-to-use-colormap-for-different-bars>

environ 14 ans il y a | 1

Réponse apportée
How to write comments defining the elements in a 2d array?
>> Yj = rand(3,4) Yj = 0.5447 0.4239 0.1753 0.2433 0.2167 0.8710 0.1654 0.1209 0.8463 ...

environ 14 ans il y a | 0

Réponse apportée
How can I display 0.0001 as it is, not 1.000e-4
fprintf('%6.4f',myNum) The 6 reserves 6 places including the decimal, the 4 is how many digits to the right of the decimal to...

environ 14 ans il y a | 2

Réponse apportée
Reading Time/Dates from Excel
I tried creating my own XLS document with date info in column A and time info in column B: 11/9/2010 9:00:00 11/10/2010 10...

environ 14 ans il y a | 0

| A accepté

Réponse apportée
Median() ignoring zeros
Or without for-loop: B = arrayfun(@(k)median(A(A(:,k)~=0,k)),1:size(A,2));

environ 14 ans il y a | 0

Réponse apportée
how can i blur an image by removing high frequencies of it's DFT
I modified an example I posted earlier. It generates a random 2D image and then applies a simple low-pass filter (i.e., sets hig...

environ 14 ans il y a | 0

Réponse apportée
Problem with multiple for loops
So after you run the code above (and assuming you initialized "p = 0;" before the code) you get "p" still equal to 0 after the c...

environ 14 ans il y a | 0

Réponse apportée
fft2 function in matlab
The 2D case is associated with double integration... so the 1D case is single integration. The above answer will simplify down t...

environ 14 ans il y a | 4

Réponse apportée
fft2 function in matlab
Here is a quick example. I assume a random 2D image where the horizontal axis (columns) represents data collected in space domai...

environ 14 ans il y a | 15

| A accepté

Réponse apportée
How to use the Output function of a Cubic Spline Interpolation?
Example: x = 0:10; y = 5 + 3*x.^2; pp = spline(x,y); int_y = quad(@(xx)ppval(pp,xx),x(1),x(end));

environ 14 ans il y a | 2

| A accepté

Réponse apportée
reading dates and time
Also a neat trick with reading date/time info: date_str = '03/01/2006,08:00:00,40.10,40.42'; date_serial = datenum(date_str,'...

environ 14 ans il y a | 0

Réponse apportée
solve two equations for two unknown variables
G*m = d G = [f1,f2;f3,f4]; d = [z1;z2]; m = G\d; x = m(1); y = m(2);

environ 14 ans il y a | 0

| A accepté

Réponse apportée
Numerical packing
UGLY/BRUTE-FORCE: I assumed you were trying to minimize the standard deviation of your group sum AND the difference between your...

environ 14 ans il y a | 1

Réponse apportée
How to work out if there is a cyclic element to data
As a rough start, you can try correlating the time series with sections of itself. For example: % User defined inforation le...

environ 14 ans il y a | 0

Réponse apportée
read large amount of formatted data
Looks like a similar problem to the one answered here: <http://www.mathworks.com/matlabcentral/answers/23351-parsing-complicate...

environ 14 ans il y a | 0

Réponse apportée
Generate Square Wave
This should work: dt = 1e-9; % time increment (in seconds) maxtime = 200e-6; % maximum length...

environ 14 ans il y a | 0

Réponse apportée
Generate Square Wave
signal_length = 20e-6; % length of signal in seconds wave_length = 1.2e-6; % wavelength of rectangle pulse in seconds amplit...

environ 14 ans il y a | 0

Réponse apportée
Data Frequency Transformation
Try interpolation! doc interp1 Here is an example using "interp1" with the method set to "spline": T = 60*8; % max ...

environ 14 ans il y a | 0

| A accepté

Réponse apportée
Deleted questions
Last time I noticed this, the person had deleted it inadvertently. Very frustrating. However, I am sure that there are some that...

environ 14 ans il y a | 1

Réponse apportée
Good evening
This was answered yesterday... You will have to save this in your working directory: <http://www.mathworks.com/matlabcentral...

environ 14 ans il y a | 0

Charger plus