Réponse apportée
Extract low-frequency coefficients of Fourier transformation
If you shift the 2-D DFT, then the low frequency components will be in the center of the image: center along the row and column ...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
How to plot histogram from two vectors
You want to use bar() x = 1:5; y = [5 3 2 6 1]; bar(x,y)

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
Set specific standard deviation limit on randn matrix?
With the Statistics Toolbox: pd = makedist('Normal','mu',0,'sigma',2); t = truncate(pd,0,4); % generate the...

plus de 12 ans il y a | 0

Réponse apportée
Matlab 2010 ARMA model
Do you have the System Identification Toolbox? There is armax() in R2010.

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
filteration of ecg signal using notch filter
Do you have the DSP System Toolbox? If so please see iirnotch()

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
Need some advice conderning best way to learn FFT and FFT related topics in a timely manner...
I wouldn't worry too much about understanding the FFT per se. If you understand the basics of the actual operator, the DFT, you'...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
Why doesn't MATLAB plot?
You are not assigning the output stock to a vector, so you are just getting the latest result from the for loop. ...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
iirnotch filter and q-factor
The above code will not work because you end up with a non-integer filter order. The filter order has to be an integer. Havin...

plus de 12 ans il y a | 1

| A accepté

Réponse apportée
Indexing a value from a vector
If you don't know the number of iterations in advance, why use a for loop? Here, I'll test when any element of p goes negativ...

plus de 12 ans il y a | 0

Réponse apportée
THD calculation using FFT tool and mathematically
Do you have Signal Processing Toolbox? If you do, see the function thd()

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
How can I calculate a dirac function of 2D discrete signal
Unless I'm missing something, it's just a 1 at the location x_i,y_i in your matrix. For example: X = zeros(20,20); X(10,10...

plus de 12 ans il y a | 0

Réponse apportée
Sum using vectorized commands and colon operator instead of loops.
Yes, it basically makes sense although what you have would not actually work in MATLAB because you need the "dot" operator for e...

plus de 12 ans il y a | 1

| A accepté

Réponse apportée
What is observation in correlation matrix?
"observations" here just means the values of the variables. Assume that you collect weight and height data on 5 people. Put the ...

plus de 12 ans il y a | 1

| A accepté

Réponse apportée
I want FFT plot of a motor data mat-file. It is of 10kHz frequency but I'm not getting the peaks of the plot at 50 Hz frequency. What corrections are needed? And how to write comments for the FFT plots drawn between frequency vs amplitude?
Without your data it is difficult to say exactly, but your frequency vector is in radians/second, not cycles/second, so could yo...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
Polyfit() does not seem to work well for some straight lines. Is there a good alternative?
Your x-vector is not monotonic, that is one major issue. Then you create this vector, xTest, which runs from -5 to 5 when the...

plus de 12 ans il y a | 1

Réponse apportée
how could i print '%' in matlab? using fprintf
fprintf('%d is my age, i got %d %% in my test\n',19,100)

plus de 12 ans il y a | 0

Réponse apportée
how to know the indices of multiple max values?
One way: A = [4 5 9 9]; maxval = max(A); lia = ismember(A,maxval); idx = find(lia); or shorter maxval = ma...

plus de 12 ans il y a | 3

| A accepté

Réponse apportée
how to apply ica for european st t database?
Please see: <http://research.ics.aalto.fi/ica/fastica/ Fast ICA> And read the tutorials and papers provided there.

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
The inverse of the Marcum-Q function
Do you have the Communications System Toolbox? See the help for qfuncinv.m If you don't have the CST, you can use erfcinv....

plus de 12 ans il y a | 0

Réponse apportée
how to i attain a matrix with 1 to n
See my comment above. If you want us to fill the remaining elements with zeros. dims = input('Provide the row and column di...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
What does "plot(spectrogram(M))" mean?
If the function you are using is the MathWorks' version of spectrogram, then you are plotting a complex-valued function. I don't...

plus de 12 ans il y a | 0

Réponse apportée
horizontal bar graphs/ figures
You have to realize that in a stacked bar plot you really have 2 bar plot objects, not 3 like you seem to think. You can modify...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
bar type graph/ figure
A = [50 25; 5 5 ; 25 50]; barh(A,0.75,'stacked'); xlabel('Seconds'); set(gca,'yticklabel',{'Green','Yello...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
bar type graph/ figure
You can do something like this: A = [50 25; 5 5 ; 25 50]; barh(A,0.75,'grouped'); xlabel('Seconds'); s...

plus de 12 ans il y a | 0

Réponse apportée
Need help fixing a function error
You don't want to call the function inside of a for loop, you want to write the loop inside of the function Also, Matt J star...

plus de 12 ans il y a | 0

Réponse apportée
Creating Loop using while
I have no trouble saving the M-file func.m in a folder on the MATLAB path, then executing >> r = func which returns 0.01 ...

plus de 12 ans il y a | 0

Réponse apportée
Error when trying to Publish from m file
If I enter the following: %% Water Density vs. Temperature % This plots the density of freshwater as a function...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
write matrices in notepad
I think you can do this: Either create a column vector in MATLAB and then just use save -ascii For example: x = ...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
How to scale PSD/Pwelch highest point to 0dB?
Can't you just scale the PSD estimate, Pxx, by the maximum value? You did not provide your OFDM signal, so I'll just create a...

plus de 12 ans il y a | 0

Réponse apportée
Filtering out high frequency content from test data
I would not worry about the sampling frequency differing at the 9th decimal place. Can you provide some more specifics: When ...

plus de 12 ans il y a | 0

Charger plus