Answered
Changes in STRNCMP
Hi Jan, This was a bug fixed in R2010b http://www.mathworks.com/support/bugreports/629110 Hope that helps, Wayne

15 years ago | 1

| accepted

Answered
Data Distribution
Then perhaps, you would like to try histfit() with some specified distribution. histfit(randn(1e3,1),20,'normal') or u...

15 years ago | 0

Answered
CAN WE PERFORM iwt on 3D image
Hi, yes, you can using lifting. LS = liftwave('db4','Int2Int'); X = randi(255,256,256,3); [CA,CH,CV,CD] = lwt2(X,LS);...

15 years ago | 0

| accepted

Answered
converting word file report to pdf file
Hi, are you using MATLAB Report Generator? Because you can generate PDF. Alternatively, Can't you just save the Word document a...

15 years ago | 0

Answered
variance and psd of the ecg signal
Hi, how is this different than: http://www.mathworks.com/matlabcentral/answers/16953-calculate-the-frequency-where-psd-is-max...

15 years ago | 0

Answered
calculate frequency band using Parseval
Hi, You can determine what percentage of power lies within a certain band. Here I determine the frequency with maximum power and...

15 years ago | 0

| accepted

Answered
calculate frequency band using Parseval
Hi, If you have the DFT (discrete Fourier transform) as implemented by fft(), then you have the frequencies. The frequencies are...

15 years ago | 0

Answered
Need help abt error.
Sorry, I just noticed I hadn't changed something. Here is a quick hack with a for loop. I'm sure there is a more elegant way if ...

15 years ago | 0

| accepted

Answered
Need help abt error.
Can you just pad the shorter vectors with zeros to make them equal length with the longer ones. That way the vector addition wil...

15 years ago | 0

Answered
Need help abt error.
Hi, I don't have any problem running this code: fs=8500; t=.18; alto_keys = [ 46 46 0 46 0]; alto_dur = [ 2*t t 2*t...

15 years ago | 0

Answered
calculate the frequency where psd is maximun
Hi, one thing you can do is to obtain a periodogram and then calculate the average power in an interval around the maximum frequ...

15 years ago | 1

| accepted

Answered
mex function error in Win32
Hi, please see: http://www.mathworks.com/help/techdoc/rn/f26-998197.html The section: New File Extension for MEX-Files ...

15 years ago | 0

Answered
Nakagami Distribution
Hi, This distribution has support only on x>0, do you have negative values for your random variables?

15 years ago | 0

| accepted

Answered
Testbench for IIR filter
Hi Vivek, I think Honglei commented on this in another post. MATLAB has a number of filter analysis capabilities built in. For e...

15 years ago | 0

Answered
band of a fft signal
Hi, you have to know the sampling frequency of your input. If you have the Signal Processing Toolbox, the easiest way is to use ...

15 years ago | 0

| accepted

Answered
tf2zp behaves weird
Hi, Ernest, it should not fail. Try this. b = [1 0 0 0 0]; a = [ 1.0000 0.4000 1.0000 0.2500 0.5000]; ...

15 years ago | 0

| accepted

Answered
convert from cell to a number?
You mean: for bbb = 1:10 countermatrix{bbb} = 0; isequal(countermatrix{bbb},0) end

15 years ago | 0

| accepted

Answered
using XTick
Hi Jenny, use set(gca,'xtick') plot(randn(17,1)); XTick = [0:16]; set(gca,'xtick',XTick)

15 years ago | 1

| accepted

Answered
EZW (embedded zero trees)
Hi, There are many papers available on the web that explain that technique. In the Wavelet Toolbox, see wcompress() that has ...

15 years ago | 0

| accepted

Answered
How to remove XTick labels without removing XGrid lines?
Hi, one way: plot(randn(100,1)); grid on; set(gca,'xticklabel',{[]})

15 years ago | 7

| accepted

Answered
Remove warning message
Yes, you can use. warning('OFF', 'MSGID') Use lastwarn() to get the message ID for the warning you want to turn off.

15 years ago | 0

| accepted

Answered
How to return row number of an element in a char matrix?
Hi, one way: A = {'aa';'ab';'ac';'ad'}; index = find(ismember(A,'ab')==1)

15 years ago | 0

Answered
Filter a signal to obtain a smooth fft
Maria, how about using a notch filter? I don't know what version of MATLAB you are running, but do you have the DSP System Toolb...

15 years ago | 1

| accepted

Answered
negative values for 'ylim' results in error
Hi, if you want to change the direction of the yaxis, you can set 'ydir' to 'reverse' plot(randn(100,1)); % set(gca,'yli...

15 years ago | 2

| accepted

Answered
Syntax of semilogx, semilogy, loglog
Hi Nicolas, Can you give an example? x = logspace(-1,2); loglog(x,exp(x),'-s','linewidth',2) figure; ...

15 years ago | 0

| accepted

Answered
Error from xcorr
Try the updated version of fftfilt.m available here: http://www.mathworks.com/support/bugreports/640328 This was fixed in ...

15 years ago | 0

| accepted

Answered
Nakagami Distribution
Please see the reference page for the function. http://www.mathworks.com/help/toolbox/stats/histfit.html histfit(data,nbin...

15 years ago | 0

| accepted

Answered
Manual Implementation of STFT of an audio signal.
Here's what you have to do, something like this: dt = 1/44100; t=0:dt:(117204*dt)-dt; x = c...

15 years ago | 1

| accepted

Answered
Nakagami Distribution
Hi, If you have the Statistics Toolbox, you can use histfit() with the 'nakagami' option. You can also use mle() with the 'na...

15 years ago | 0

| accepted

Answered
Manual Implementation of STFT of an audio signal.
Hi, I think you are misunderstanding some things about the STFT. Why do you think the sampling frequency has anything to do wi...

15 years ago | 0

Load more