Answered
how to obtain the frequencies from the fft function
dpb is correct, you can use that to create a meaningful frequency vector For an even length signal, the most common interval ...

12 years ago | 2

| accepted

Answered
I want to design a simple Low pass filter with equiripple window function and cut off freq at 200 hz . Could somebody please help me how to design low pass filter for below code?
When you say "equiripple window function" you are confusing two FIR filter design methods, the equiripple design, and the window...

12 years ago | 0

Answered
Is it possible to use surf function calling parameters from a 4-D matrix?
You can use squeeze() to do this output = randn(20,20,20,20); surf(squeeze(output(1,:,:,1)))

12 years ago | 1

| accepted

Answered
Subscript indices must either be real positive integers or logicals.
I'm not sure what you are trying to do, create a superposition of sine waves with different frequencies and a random phase and a...

12 years ago | 0

Answered
Referencing String in an array?
Why not use a cell array? A = {'Apple', 'Oranges'}; Then A{1} and A{2} will give you what you want.

12 years ago | 0

Answered
how can i solve the error "Undefined function 'sign' for input arguments of type 'sym'."
Yours works for me: function [S] = Signfunction(f,a,b) %you misspelled this above v=-a:0.5:b; S= f(v); S=sign(S);...

12 years ago | 0

Answered
Using a previously calculated value in a for loop
You have not written a valid MATLAB for loop. I'm not sure what you are trying to do because you create t as a vector and then d...

12 years ago | 0

Answered
how can i solve the error "Undefined function 'sign' for input arguments of type 'sym'."
Do you have the Symbolic Toolbox? And if you do, why aren't you just doing syms x; f = 3*x+2; sign(sub...

12 years ago | 0

| accepted

Answered
How to create a histogram for given data ??
As dpb has told you, use bar() A = [3 5 7 9]; B = [2000 2010 2020 2030]; bar(A,B,'barwidth',0.4) set...

12 years ago | 1

Answered
steps that are need to write a program for ecg signal analysis using independent component analysis
There are MATLAB programs available for ICA http://research.ics.aalto.fi/ica/fastica/

12 years ago | 0

Answered
plotting a 2nd figure
Insert a figure command before the 2nd for loop for nn=1:k surf(Vm,Rs,T(:,:,nn)); hold on ti...

12 years ago | 1

| accepted

Answered
Bispectrum Indirect FFT method
This function estimates the bispectrum by first estimating the third-order cumulants of the random process, x(t), which is forma...

12 years ago | 1

Answered
how to return only true statements
Just do e>0 You get the following 1 0 0 1 0 1 1 If you want to return the elements ...

12 years ago | 0

Answered
Error message says not enough input arguments
You don't want color == , you want color = W=input('Enter your wavelength in nanometers from 400nm to 700nm:\n'); if...

12 years ago | 0

Answered
How to specify size of row and column vector
sizeofvector = input('What size vector do you want? Enter the size in brackets, e.g. [100 1]\n'); %%% user enters [1 ...

12 years ago | 0

| accepted

Answered
Different results with approximation coefficients with ndwt and swt
Dave, what you can do is symmetrically extend the time series, then operate on those wavelet coefficients and then keep the "cen...

12 years ago | 0

| accepted

Answered
Normally distributed pseudorandom numbers using randn
You cannot expect it to have exactly a mean of 10.5 in one realization of the random vector. If you repeat that experiment a lar...

12 years ago | 0

| accepted

Answered
How to create a limited frequent values in array?
You can use hist() and unique() x = [1 2 5 2 2 7 8 3 3 1 3 8 8 8]; [N,bins] = hist(x,unique(x)); bins(N==3) Of co...

12 years ago | 0

| accepted

Answered
How to specify size of row and column vector
How do you find the size, or how do you specify? To find the size, simply use length() A = randn(100,1); length(A) ...

12 years ago | 0

Answered
unique values in cell array
You could do this: test1 = {1,2,3,'No';1,3,2,'Yes';2,2,2,'Yes'}; out = unique(cellfun(@num2str,test1,'uni',0)); and t...

12 years ago | 1

Answered
Analytical integral in MATLAB
The Symbolic Toolbox does syms x; f = x^2 int(f,x)

12 years ago | 0

| accepted

Answered
Converting sym to string without 'matrix....' before
Can you tell us the use case here, you just want to display it as a string? One thing you can do is syms a b c ...

12 years ago | 1

| accepted

Answered
Test-stat for Kolmogorov-Smirnov test
The two-sided test as implemented is essentially described here: http://en.wikipedia.org/wiki/Kolmogorov%E2%80%93Smirnov_test...

12 years ago | 0

Answered
Different results with approximation coefficients with ndwt and swt
Hi Dave, there is a bug in ndwt.m. This has been reported. swt() is correct. Are you not able to use swt() due to length constra...

12 years ago | 0

Answered
LISTBOX, PLEASE HELP ME WITH THE LISTBOX
a = inputdlg('Enter your vector'); % when dialog comes up enter, 1:10, click OK a = str2num(cell2mat(a)); a is now ...

12 years ago | 1

Answered
How to substitute "getimage" function?
Try get(h,'CData') on the graphics handle. For example: I = imread('cameraman.tif'); h = imshow(I);...

12 years ago | 0

Answered
i got an error while exeuting randperm.when i run which ranperm,got error not found.but fuction is already in toolbox
Can you try >>rehash and then try to execute >>which randperm

12 years ago | 0

Answered
generate a correlated normal distribution
Not sure what you mean by "one sequence correlated together with normal distribution" You can generate a sequence that *follo...

12 years ago | 0

| accepted

Answered
Use of wcodemat and wkeep ?
That isn't the use case for wcodemat(). wcodemat() is simply for scaling images for display purposes. The 2D DWT is invertibl...

12 years ago | 0

| accepted

Answered
Use of wcodemat and wkeep ?
Yes, in the sense that the inverse wavelet transform will no longer work. By using wkeep() you are removing elements of the deta...

12 years ago | 0

Load more