Answered
Cell Function
Why didn't you do what I suggested? detrendcell = cellfun(@(T32)detrend(T32,'linear'),T32,'un',0); detrendcell = cell2ma...

15 years ago | 0

Answered
Cell Function
You can use two calls to cellfun and then use cell2mat data1 = cellfun(@mean,x,'UniformOutput',false); data1 =...

15 years ago | 0

Answered
Cell Function
x = {randn(1000,1), randn(1000,1), randn(1000,1)}; meanz = cellfun(@mean,x,'UniformOutput',false); meanz = cell2mat(mean...

15 years ago | 0

| accepted

Answered
jpeg on real time video
Do you mean mpeg video? If you have the Computer Vision Toolbox, you can use the System objects: vision.VideoFileReader and visi...

15 years ago | 0

Answered
how to find roots of equation having tan(x) or exp(x)
Is it a polynomial, or an equation involving tan(x) and exp(x)? Have you looked at fzero()? For example, if you have the e...

15 years ago | 1

| accepted

Answered
Can somebody trace my error in this solution of spectrum
If a negative term appears associated with a single frequency, like say -2*exp(1j*pi/4) that has no impact on magnitude that ...

15 years ago | 0

| accepted

Answered
matrix multiplication
It's just telling you that the two matrices are not conformable for multiplication. The number of columns in V has to match the ...

15 years ago | 1

| accepted

Answered
Can somebody trace my error in this solution of spectrum
The sine terms at 250 Hz interact such that the magnitude of the sum is not 2 (when you look at the two-sided spectrum). What...

15 years ago | 0

Answered
FIR1 basic question
Hi, One major problem that you have is that you do not define your normalized frequencies correctly. If you want a passband betw...

15 years ago | 0

| accepted

Answered
what is step response and step()?
Hi, tmats{size(template,1),size(template,2)} is a System object that is an element of a cell array. It is a template matcher Sys...

15 years ago | 0

Answered
problem with error bar
e = std(y)*ones(size(y));

15 years ago | 0

| accepted

Answered
how to determine fundamental freq and plot this equation
Yes, Think about exp(1j*2*pi*k*3*t) what value of T exists such that exp(1j*2*pi*k*3*(t+T))= exp(1j*2*pi*k*3*t) For that t...

15 years ago | 1

| accepted

Answered
how to determine fundamental freq and plot this equation
Hi , One way. I'll just assume a sampling frequency of 100. Fs = 100; t = (0:1/Fs:1-(1/Fs))'; X = zeros(100,21); ...

15 years ago | 0

Answered
what is the function of... ?please explain the statement ' roi'. and ' isempty'
tmats is created as an empty cell array 7x7 The code: if isempty(tmats{size(template,1),size(template,2)}) ...

15 years ago | 0

| accepted

Answered
Question regarding Frequncy component
Yes, that's correct there will be frequency components at [-750 -250 250 750] so the bandwidth is 1500 Hz, you have to sample a...

15 years ago | 0

| accepted

Answered
what is step response and step()?
Hi Neenu, The step() you are referring to in this code is not related in any way to the step response of a system. step() here ...

15 years ago | 1

| accepted

Answered
Can i plot spectrum of a signal in Matlab
That is because you changed the sampling frequency, in your frequency vector freq = -2000:(Fs/length(x)):2000-(Fs/length(x));...

15 years ago | 0

Answered
how to obtain wavelet co-efficient
FIR, I told you that answer. Please look at the example in wavedec3. I included the link for you above. If you open the referenc...

15 years ago | 0

Answered
Can i plot spectrum of a signal in Matlab
as far as your multiplication problem, use the .* operator x = cos(1000*pi*t+pi/3).*(sin(500*pi*t+pi/4));

15 years ago | 0

Answered
Can i plot spectrum of a signal in Matlab
Fs = 1000; t = 0:1/Fs:1-(1/Fs); x = 14*cos(200*pi*t-pi/3); xdft = (1/length(x))*fft(x); freq = -500:(Fs/length(x))...

15 years ago | 0

| accepted

Answered
how to obtain wavelet co-efficient
Hi, MATLAB supports a 3-D wavelet transform, but the 3-D lifting scheme is not supported so the coefficients will be not be inte...

15 years ago | 0

| accepted

Answered
need help in dwt2 ....
Hi, I think you are better off to use wavedec2 instead of iterating on the LL output with dwt2(). wavedec2() does that anyway. ...

15 years ago | 0

| accepted

Answered
how to use listdlg
d = dir; str = {d.name}; [s,v] = listdlg('PromptString','Select a file:',... 'SelectionM...

15 years ago | 0

Answered
How to select 2nd largest number (or largest if no 2nd largest)
Hi Julie, one simple way is N = 1; x = randn(N,1); b = sort(x,'descend'); if (length(b)>1) b(2) else b(1)...

15 years ago | 0

Answered
completing a bell curve
Hi Tara, when you say bell curve, do you mean a Gaussian pdf? If so you can get that information exactly if you know the paramat...

15 years ago | 0

Answered
t wave analysis using wavelet
Hi, There are a number of papers available on the web that present wavelet-based algorithm for T wave detection. Basically, the...

15 years ago | 0

Answered
Creating an image filter
Hi, if you just want to do that you can use logical indexing. I = imread('cameraman.tif'); I(I<66) = 0; I(I>66) = 255...

15 years ago | 0

| accepted

Answered
Copy and rename Excel files from Matlab
Hi Rajib, You can use system() to issue a system command from within MATLAB.

15 years ago | 0

Answered
Adding quotes to a user input
Hi, You can just use the 's' option in input. method = input('linear or cubic?\n','s'); switch(method) case 'linea...

15 years ago | 1

Answered
Wavelet Decomposition - Frequency-Scale mapping
Hi Zac, It is the sampling frequency of the signal. Also have a look at cwtft(), that is a new Fourier-transform based algorithm...

15 years ago | 0

| accepted

Load more