Réponse apportée
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 ...

plus de 12 ans il y a | 2

| A accepté

Réponse apportée
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...

plus de 12 ans il y a | 0

Réponse apportée
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)))

plus de 12 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 12 ans il y a | 0

Réponse apportée
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.

plus de 12 ans il y a | 0

Réponse apportée
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);...

plus de 12 ans il y a | 0

Réponse apportée
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...

plus de 12 ans il y a | 0

Réponse apportée
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...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 12 ans il y a | 1

Réponse apportée
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/

plus de 12 ans il y a | 0

Réponse apportée
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...

plus de 12 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 12 ans il y a | 1

Réponse apportée
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 ...

plus de 12 ans il y a | 0

Réponse apportée
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...

plus de 12 ans il y a | 0

Réponse apportée
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 ...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
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) ...

plus de 12 ans il y a | 0

Réponse apportée
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...

plus de 12 ans il y a | 1

Réponse apportée
Analytical integral in MATLAB
The Symbolic Toolbox does syms x; f = x^2 int(f,x)

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
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 ...

plus de 12 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 12 ans il y a | 0

Réponse apportée
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...

plus de 12 ans il y a | 0

Réponse apportée
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 ...

plus de 12 ans il y a | 1

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

plus de 12 ans il y a | 0

Réponse apportée
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

plus de 12 ans il y a | 0

Réponse apportée
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...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 12 ans il y a | 0

Charger plus