Answered
Undefined function or method 'CellToString' for input arguments of type 'cell'.
Hi, What is CellToSTring? That is not a MATHWORKS' function. If that is a function you have written or somebody has given you, t...

15 years ago | 0

Answered
create vector of repeating elements (sort of)
One way: w = 3; x = 1:8; x = arrayfun(@(x) repmat(x,1,w),x,'UniformOutput',false); x = cell2mat(x); Way...

15 years ago | 0

Answered
How can store data when a function provide answer with different sizes.
Hi Alan, one way is to use cell arrays to store your data.

15 years ago | 0

| accepted

Answered
how to separate out the lung sounds from heart sounds ?
Are these sounds separated in approximately disjoint frequency intervals? In other words, can you separate them in the frequency...

15 years ago | 0

Answered
High pass filter doubt in matlab
You need to specify what measure of power you want to calculate. If you just want to calculate the norm squared, you can use ...

15 years ago | 0

Answered
Getting MATLAB to randomize a vector of characters
Hi Evan, You can format your code to make it easier to read. If you have the person enter the names in a cell array: Names =...

15 years ago | 1

| accepted

Answered
High pass filter doubt in matlab
Hi, I don't see any picture. Once you design your filter, did you export it to the command window? You do this by File -> Ex...

15 years ago | 0

Answered
MultiScale Filter Bank
Hi, If you have the Wavelet Toolbox, you can implement a multiscale separable filter bank using wavedec2. Just one example: ...

15 years ago | 0

| accepted

Answered
Need help about function
How are you calling the function, note(), at the command line? You should call it as: tone = note(12,3); Then there w...

15 years ago | 0

| accepted

Answered
Need command for Continuous time fourier transform
Hi Ratna, You can use assume() to place limits on your variable of integration. For example syms x % create Dirac dis...

15 years ago | 0

Answered
Is deleting threads helpful in this forum?
I agree with you. The ability to edit and/or add comments is sufficient unless there is some compelling reason to remove the thr...

15 years ago | 3

| accepted

Answered
biplot understanding
Hi, In the first biplot both component 1 and component 2 (the columns of your matrix) are in the same direction and magnitude. ...

15 years ago | 0

| accepted

Answered
WAVELET- FREQUENCY
Hi, There is no exact correspondence, but you can use scal2frq to obtain an approximate correspondence. Also, beginning in R2...

15 years ago | 0

| accepted

Answered
PPVAL , a short question
Hi Stephan, the polynomials are not y=x. Your polynomials are f(x) = x-1 % x-break(1) g(x) = x-2 % x-break(2) ...

15 years ago | 0

Answered
Generate random number between -1 and 1 with specified mean and variance
Hi, You did not state what distribution you want the random numbers to follow. From your use of randn() in your post, I'm assum...

15 years ago | 0

| accepted

Answered
in command window while displaying a cell, instead of showing arrays , shows how many characters there are
Hi Mohammad, Hard for me to debug without your splot() because I'm not sure what you are trying to do, but do any of these sugge...

15 years ago | 0

Answered
plotting in same figure window
Do you want the plot to replace what is already there and keep the same axes? h1 = figure; plot(randn(100,1)); ...

15 years ago | 0

Answered
in command window while displaying a cell, instead of showing arrays , shows how many characters there are
Hi Mohammad, I'm not sure I understand exactly what you mean here, so I apologize if I am not getting your intent, but perhaps y...

15 years ago | 0

Answered
plot(x,y) does not show x-cordinate and y-ordinates
Hi Anindya, Please show the MATLAB code that you are using to produce that plot. Ex: x = 0:0.01:2*pi; y = sin(x); ...

15 years ago | 0

Answered
making a figure always on top
If you have a handle to a figure. h1 = figure; plot(randn(100,1)); And after you create subsequent plots, you call: fig...

15 years ago | 2

| accepted

Answered
ecg signal filtering
Hi, You don't give enough information to fully specify your filter, but here is a filter with 40-dB of attenuation as a start. I...

15 years ago | 0

| accepted

Answered
Finding the main frequency after fft
Hi, You have to find the corresponding index in a frequency vector. For example: Fs = 1e3; t = 0:.001:1-0.001; ...

15 years ago | 1

| accepted

Answered
random t distribution sample
Because the expression for the variance depends on the noncentrality parameter and the degrees of freedom. If you plug in a nonc...

15 years ago | 0

| accepted

Answered
random t distribution sample
R = nctrnd(100,2,100,1); will give you a random sample of 100 samples from a noncentral t with a mean of 2 (essentially), b...

15 years ago | 0

Answered
Need command for Continuous time fourier transform
Hi, If you have the Symbolic Toolbox, you can use fourier() to obtain the Fourier transform. syms x; f = exp(-x^2); f...

15 years ago | 0

Answered
random t distribution sample
Hi, The central t-distribution is symmetric and has mean zero (as long as you have more than 1 degree of freedom). For low degre...

15 years ago | 0

Answered
random t distribution sample
Hi, I think you want trnd or nctrnd if you have the Statistics Toolbox. The central t-distribution is not parameterized by a...

15 years ago | 0

Answered
nchoosek help
Hi Sean, 4 people in a line is just factorial(4). nchoosek assumes you are interested in how many ways you can choose a number o...

15 years ago | 0

| accepted

Answered
Magnitude scaling in FFT and Periodogram
psdest = psd(spectrum.periodogram,x,'Fs',1e3,'NFFT',length(x)); psdest.Data has the periodogram values (not in dB),...

15 years ago | 1

Load more