Answered
transforming a matrix to an array without one values???
a=[13 1 4; 45 23 1; 1 56 78]; indices = find(a==1); a(indices) = [];

14 years ago | 0

| accepted

Answered
histogram of image
Do you have the Image Processing Toolbox? I = imread('pout.tif'); imhist(I)

14 years ago | 0

Answered
lwt
Hi Aseel, Glad to see you are using the lifting utilities in the Wavelet Toolbox, they're definitely powerful. 'typeDEC' take...

14 years ago | 0

| accepted

Answered
Cross Validation
crossvalind generates the indices that you can use for a general K-fold cross validation and enables you to select the training ...

14 years ago | 0

| accepted

Answered
wavedec
Hi Aseel, You can use detcoef2 and appcoef2 along with the inputs C and S to extract the appropriate coefficients. For exampl...

14 years ago | 0

| accepted

Answered
Where can I find “Spectrum” class definition file (contain classdef)?
Hi Bob, the spectrum objects you refer are "old" objects having been introduced back in MATLAB R14 (Signal Processing Toolbox ve...

14 years ago | 0

Answered
How to resolve between @spectrum/psd.m and psd.m?
Hi Bob, in fs = 1000; % Sampling frequency t = (0:fs)/fs; % One second worth of samples A = [1 2]; % ...

14 years ago | 0

Answered
Save signal as .dat file
x = randn(100,1); save test.dat x -ascii % or save('c:\folderyouwant\test.dat','x','-ascii'); save supports other ...

14 years ago | 4

Answered
How to associate M-File and Simulink?
Hi Ercin, You can use the MATLAB function block.

14 years ago | 0

Answered
eSignal not working
Hi Eric, I'm assuming you have the Datafeed Toolbox installed? If you enter: license('test','datafeed_toolbox') do yo...

14 years ago | 0

Answered
splitting audio in a frames
Hi Vijay, do you the DSP System Toolbox? You can use dsp.AudioFileReader to read the wav file one frame at a time, which you can...

14 years ago | 0

Answered
Add Poisson Noise in an image
Hi Abhijit, Are you sure that you are using the MathWorks' imnoise function? Perhaps you have another imnoise.m function that pr...

14 years ago | 0

Answered
Spatial Frequency
Hi, See this tutorial (which ImageAnalyst provided in an earlier post): <http://sharp.bu.edu/~slehar/fourier/fourier.html>

14 years ago | 1

| accepted

Answered
Question abut the Chi-square probability density function
Hi John, No, v is the degrees of freedom. It is a scalar. You have estimated your degrees of freedom as 2. By the way did you a...

14 years ago | 0

Answered
Question abut the Chi-square probability density function
Hi John, the chi-square density is characterized by 1 parameter, the degrees of freedom. You do not want to say that because you...

14 years ago | 0

Answered
iFFT Scaling Problem
It's hard to say anything definitive without knowing what is actually in this code: rloss = values(:,2); degree = values(:...

14 years ago | 0

Answered
I have been given a digital bandpass filter - what is it?
Hi Stewart, this is a standard 2nd order linear constant coefficient difference equation. You can mimic this filter easier in M...

14 years ago | 0

Answered
delay error
You can always use a tolerance in your code. tol = 1e-12; if (abs(x)< tol) end Or whatever you want the tolerance to...

14 years ago | 0

Answered
how to find frequency of a sin wave.
Hi Naga, you can use fft(). If you have the Signal Processing Toolbox, the easiest thing to use is spectrum.periodogram. With ei...

14 years ago | 1

Answered
Sort data Matlab program errors.
Looks like you are trying to define a function inside of a script, test_ssort. You should save your ssort.m file into a folder ...

14 years ago | 0

Answered
I have been given a digital bandpass filter - what is it?
At first glance, it doesn't look familiar, but do you have the Signal Processing Toolbox? You can easily design bandpass filters...

14 years ago | 0

Answered
Store Scope output for different test cases in workspace
Hi Pranav, Can't you use a To Workspace block?

14 years ago | 0

Answered
How to work out if there is a cyclic element to data
Hi Stewart, Is this data stationary? If so you can use a nonparametric spectral estimator to test the hypothesis that there are ...

14 years ago | 0

Answered
Getting Discrete Data from an x-y Plot
Hi Robin, you can interpolate to a finer grid. X = 0:10; V = sin(X); stem(X,V); Xq = 0:.25:10; Vq = inter...

14 years ago | 1

| accepted

Answered
Image Processing Noise differences
J = imnoise(I,'gaussian',0,0.25); J = I+0.5*randn(size(I)); For awgn(), your function syntax assumes the power of the in...

14 years ago | 0

| accepted

Answered
Image Processing Noise differences
Hi, in I = I +0.25*randn(size(t)); you get noise with a standard deviation of 0.25, not variance. If you want noise with a ...

14 years ago | 0

Answered
How to smooth the Curve
Hi, one thing you can do is use a moving average filter: y = filter(1/5*ones(5,1),1,x); plot(y);

14 years ago | 0

Answered
stem function and fft
Hi Eman, stem() is not converting the continuous signal to discrete time. stem() just plots. If you have the sequence (vector) i...

14 years ago | 0

Answered
How can I arrange an array in an ascending way?
Hi, if they are row vectors as you have indicated c = sort([a b],'ascend');

14 years ago | 0

| accepted

Answered
how to see the frequency response of difference equation
You can do the following: W = -pi:(2*pi)/8192:pi; [H,W] = freqz([1 -1],[1 0.9],W); plot(W,abs(H));

14 years ago | 0

| accepted

Load more