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

mehr als 12 Jahre vor | 0

| akzeptiert

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

mehr als 12 Jahre vor | 0

| akzeptiert

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

mehr als 12 Jahre vor | 0

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

mehr als 12 Jahre vor | 0

| akzeptiert

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

mehr als 12 Jahre vor | 0

| akzeptiert

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

mehr als 12 Jahre vor | 0

| akzeptiert

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

mehr als 12 Jahre vor | 0

| akzeptiert

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

mehr als 12 Jahre vor | 1

| akzeptiert

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

mehr als 12 Jahre vor | 0

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

mehr als 12 Jahre vor | 0

| akzeptiert

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

mehr als 12 Jahre vor | 0

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

mehr als 12 Jahre vor | 1

| akzeptiert

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

mehr als 12 Jahre vor | 1

| akzeptiert

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

mehr als 12 Jahre vor | 0

| akzeptiert

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

mehr als 12 Jahre vor | 1

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

mehr als 12 Jahre vor | 0

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

mehr als 12 Jahre vor | 3

| akzeptiert

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

mehr als 12 Jahre vor | 0

| akzeptiert

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

mehr als 12 Jahre vor | 0

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

mehr als 12 Jahre vor | 0

| akzeptiert

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

mehr als 12 Jahre vor | 0

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

mehr als 12 Jahre vor | 0

| akzeptiert

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

mehr als 12 Jahre vor | 0

| akzeptiert

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

mehr als 12 Jahre vor | 0

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

mehr als 12 Jahre vor | 0

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

mehr als 12 Jahre vor | 0

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

mehr als 12 Jahre vor | 0

| akzeptiert

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

mehr als 12 Jahre vor | 0

| akzeptiert

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

mehr als 12 Jahre vor | 0

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

mehr als 12 Jahre vor | 0

Mehr laden