답변 있음
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년 초과 전 | 2

| 수락됨

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 1

| 수락됨

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 1

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 1

| 수락됨

답변 있음
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년 초과 전 | 1

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 1

답변 있음
Analytical integral in MATLAB
The Symbolic Toolbox does syms x; f = x^2 int(f,x)

12년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 1

| 수락됨

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 1

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

12년 초과 전 | 0

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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...

거의 13년 전 | 0

| 수락됨

답변 있음
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...

거의 13년 전 | 0

더 보기