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

más de 12 años hace | 0

| aceptada

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

más de 12 años hace | 0

| aceptada

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

más de 12 años hace | 0

Respondida
Matlab 2010 ARMA model
Do you have the System Identification Toolbox? There is armax() in R2010.

más de 12 años hace | 0

| aceptada

Respondida
filteration of ecg signal using notch filter
Do you have the DSP System Toolbox? If so please see iirnotch()

más de 12 años hace | 0

| aceptada

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

más de 12 años hace | 0

| aceptada

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

más de 12 años hace | 0

| aceptada

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

más de 12 años hace | 1

| aceptada

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

más de 12 años hace | 0

Respondida
THD calculation using FFT tool and mathematically
Do you have Signal Processing Toolbox? If you do, see the function thd()

más de 12 años hace | 0

| aceptada

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

más de 12 años hace | 0

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

más de 12 años hace | 1

| aceptada

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

más de 12 años hace | 1

| aceptada

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

más de 12 años hace | 0

| aceptada

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

más de 12 años hace | 1

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

más de 12 años hace | 0

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

más de 12 años hace | 3

| aceptada

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

más de 12 años hace | 0

| aceptada

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

más de 12 años hace | 0

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

más de 12 años hace | 0

| aceptada

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

más de 12 años hace | 0

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

más de 12 años hace | 0

| aceptada

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

más de 12 años hace | 0

| aceptada

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

más de 12 años hace | 0

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

más de 12 años hace | 0

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

más de 12 años hace | 0

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

más de 12 años hace | 0

| aceptada

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

más de 12 años hace | 0

| aceptada

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

más de 12 años hace | 0

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

más de 12 años hace | 0

Cargar más