Answered
Grouping of like Magnitudes
Do you have the Signal Processing Toolbox? Have you seen this function: <https://www.mathworks.com/help/signal/ref/statelevel...

12 years ago | 0

Answered
What does this error mean?
It looks like your I1 is not a scalar or a 1x2 vector. Can you set a breakpoint at line 49 in ImageStore and say what I1 is. ...

12 years ago | 0

| accepted

Answered
Why FFT function returns amplitude divided by 2 ?
Because the discrete Fourier transform matches the input signal with complex exponentials and a cosine is the sum of two complex...

12 years ago | 1

| accepted

Answered
From where can i read about the functioning of the wvtool??
Hi, wvtool does the following: *frequency response* -- this is calculated using the function freqz() For example: w...

12 years ago | 0

| accepted

Answered
I could not understand the process of dividing two not square matrices....
Read the help for mldivide. That will explain to you in detail what x/y means. Not that the above operation is actually ...

12 years ago | 0

| accepted

Answered
Error in my code.....
This: v = I(i,j); h(v)=h(v)+1; If an element of I is zero, which is quite possible because I is a gray-scale image, t...

12 years ago | 0

| accepted

Answered
why wavelet doesn't show accurate results always?
Wavelets have bandwidth, they are not like the complex exponentials of Fourier analysis. The larger the scale, the narrow the ba...

12 years ago | 1

Answered
why wavelet doesn't show accurate results always?
I'm not quite sure why you say this: t=linspace(0,30,300); Fs=ceil(inv(t(2)-t(1))); x=sin(2*pi*t*0.1).*(t<10)...

12 years ago | 1

| accepted

Answered
function x=solv(a,b) while round((a*x-1)/b)~=(a*x-1)/b x=x+1; end this function is showing error while running: ??? Undefined function or method 'solv' for input arguments of type 'double'. please help me to solve this problem..
The error message your getting is because solv.m is not in a folder (directory) on the MATLAB path. Let's say that you have y...

12 years ago | 0

Answered
Calling Matlab from C++
If you want the results in the MATLAB workspace, why not create a MEX file with your C++ code? <http://www.mathworks.com/help...

12 years ago | 0

Answered
Can't get a STABLE highpass filter with a 0.01 Hz cutoff frequency
I can get a stable highpass design with the following d = fdesign.highpass('Fst,Fp,Ast,Ap',0.1,0.2,40,1,4000); Hd = design...

12 years ago | 1

Answered
Calculating Kendall's tau
Hi Anna, 'Kendall' is not an option of corrcoef(). It is an option for the function corr(), which is part of the Statistics Tool...

12 years ago | 0

| accepted

Answered
Hi, I am trying to use grpstats on my program and trying to compute median and percentile and skew but somehow i am not getting the program to run.
Hi Rishav, WeekNum should be your grouping variable for the observations in Z so I'm not sure why you are including WeekNum in t...

12 years ago | 1

Answered
What algorithm is used by refinemesh.m?
Hi Carolyn, the function reference does not have a reference listed but it does have an algorithm description: <https://www.m...

12 years ago | 0

Answered
where nsctdec function is defined?
If you have downloaded an M-file, then you need to add the folder (directory) in which that M-file lives to the MATLAB path, oth...

12 years ago | 0

| accepted

Answered
how can I normalizd ecg spectrum frequency?
If you have the Signal Processing Toolbox, just use periodogram without specifying the sampling frequency and you'll get normali...

12 years ago | 0

Answered
Wrong numerical values from compute_curvature() ?
compute_curvature is not a MathWorks' function. Have you thought about mailing Gabriel Peyre who provided it to the file exchang...

12 years ago | 0

Answered
mod gives incorrect result
If anybody's interested in this, google: "division and modulus for computer scientists" mod() is implementing what Knuth t...

12 years ago | 0

Answered
mod gives incorrect result
Are you sure you're not confusing mod() with rem()? If you read the help for mod(), it says that mod(x,y) returns x-floo...

12 years ago | 0

Answered
Different results interchanging fftshift and unwrap
Hi Bruce, unwrap() works on the vector in order from the 1st element to the last. It stands to reason if you use fftshift first ...

12 years ago | 0

Answered
How to put limit on coefficient produced by polyfit in MATLAB?
There are routines on the file exchange like this one: <http://www.mathworks.com/matlabcentral/fileexchange/38926-fit-polynom...

12 years ago | 0

Answered
How to split EEG signal into different chunks?
x = randn(9600,1); len = 9600/4; x1 = reshape(x,len,4); x1 is a matrix with 4 columns, each one is 9600/4 samples ...

12 years ago | 0

Answered
Converting to dBm from pwelch function
Since 1 milliwatt is 0 dBm, you can do the following: 10*log10(1e3*Pxx) from the above, you see that a power of 1 milliwa...

12 years ago | 0

Answered
How to export coefficients automatically when using rstool?
Hi, you can just use regstats() stats = regstats(Y,X,'purequadratic'); stats.beta The beta field of the structure a...

12 years ago | 0

| accepted

Answered
Has the bandpass filter function changed recently?
Hi, the following code should work: Order = 4; F3dB1 = 5; F3dB2 = 450; Fs = 2000; d = fdesign.bandpas...

12 years ago | 0

| accepted

Answered
Suggestions for quantifying spectral leakage
"But then I realised this wouldn't work as if there was a 1MHz bin, there wouldn't be any spectral leakage." The above statem...

12 years ago | 0

| accepted

Answered
Confidence intervals around trend
Do you have the Statistics Toolbox? One way: load carsmall; X = ones(length(Horsepower),2); X(:,2) = Horsepo...

12 years ago | 0

Answered
test for equality not working 8.0.0.783 (R2012b)
This is the well-known and often responded to in this forum (and others) problem of trying to compare floating point numbers. ...

12 years ago | 1

| accepted

Answered
please explainn this and guide me to develope the code
You can do the following [Pxx,F] = pwelch(SSSS,hanning(128),0,128,1/15); The syntax you are using above is: [P...

12 years ago | 0

| accepted

Answered
Cross Spectra and Coherence
You can compute the cross-spectrum and magnitude-squared coherence with cpsd.m and mscohere.m in the Signal Processing Toolbox. ...

12 years ago | 0

Load more