Answered
How to set sampling frequency as cycle per year??
It depends on the time between your data samples. What is the sampling interval? Were your data acquired at a rate of 1 sample p...

13 years ago | 0

| accepted

Answered
How can I "install" a function of file exchange in Matlab?
Create a folder on your machine called histvar and then unzip the contents of that zip file into that folder, then at the MATLAB...

13 years ago | 5

Answered
Detecting maximum and minimum of signal
One thing you can do is to use the Hilbert transform to form the analytic signal corresponding to your signal, then use the modu...

13 years ago | 0

| accepted

Answered
??? Attempted to access barERRk(1); index out of bounds because numel(barERRk)=0
If it is in fact the very same code, then I think there are a couple things to check. 1.) Are the versions of MATLAB the same...

13 years ago | 0

Answered
randperm reports too many input arguments
You are most likely using a release in which randperm() only supported 1 input argument. That syntax was only introduced in R201...

13 years ago | 2

| accepted

Answered
array summation with matrices of different size
When you say "matrices" are they are always really Nx1 column vectors as your example shows? If so you can just do this P...

13 years ago | 0

Answered
Auto Regressive Moving Average help required?
<http://www.mathworks.com/help/ident/ug/estimating-ar-and-arma-models.html> You need the System Identification Toolbox

13 years ago | 0

| accepted

Answered
How can I use one variable to extract specific observations from another variabel?
You can use logical indexing on A to select the appropriate elements of B A = [-2 -1 2 3]; B = [5 10 8 4]; buyz =...

13 years ago | 1

| accepted

Answered
vector input to function
Then you need to use a for loop and store the results X = rand(2,3,5); Y = randn(2,3,5); for nn = 1:size(X,...

13 years ago | 1

Answered
A simple question regarding axes label
You can first set up the xticks to match exactly the beginning of the years and then set the xticklabel property to match the ye...

13 years ago | 1

| accepted

Answered
how p(:,j) differs from p(j,:)?
p(:,j) takes all the rows and the j-th column of p p(j,:) takes the j-th row and all the columns of p So p = [1 2...

13 years ago | 0

Answered
To take the Fourier transform of a spectrum
is y a time series? If so, then to find the spectrum, you can just use fft() ydft = fft(y); or is y a spectrum? It's ...

13 years ago | 0

| accepted

Answered
format the x-axis at plotting (have x10^5) at the end
Can you get it to work by using a combination of the way you define the x-axis and the XTick property? x = 1e5:1e5:5e5; ...

13 years ago | 0

| accepted

Answered
Passing Transforming function to step method of matlab.system.System
Hi, I'm not quite sure what you are trying to do in terms of defining your own System object. I'll give you a very simple exampl...

13 years ago | 1

Answered
v = directionalVariogram(img, xoffset, yoffset); in which version of matlab this function is suported? also in which toolbox?
This is not a MathWorks' function. It was a function written and posted by Daniel Young as far as I can tell function v = d...

13 years ago | 0

| accepted

Answered
Warning: Ignoring extra legend entries
You only have one plot on the figure. [N,X] = hist(papr, 100); semilogy(X,1-cumsum(N)/max(cumsum(N)),'-d') grid on; ...

13 years ago | 0

Answered
how the compression ratio is calculated
perf0 is the percentage of zeros in the wavelet coefficients. So 84% indicates that 84 percent of the wavelet coefficients have ...

13 years ago | 0

| accepted

Answered
Displaying the image of wavedec2
Then you can simply do: X = imread('cameraman.tif'); [C,S] = wavedec2(X,2,'haar'); A2 = appcoef2(C,S,'haar',2)...

13 years ago | 0

Answered
How to make convolution between two signals?
x = [1 2 0 0 -3]; h = [3 2]; y = conv(x,h); subplot(311) stem(0:4,x,'markerfacecolor',[0 0 1]) set(...

13 years ago | 0

Answered
Displaying the image of wavedec2
You have to select the particular coefficients you want from the wavedec2 output vector. You can use detcoef2 for that. For e...

13 years ago | 0

Answered
FFT code in Fortran
Why not just use fft() in MATLAB? It is a built-in function so I'm sure it would be just as efficient (probably more) than cr...

13 years ago | 0

Answered
Try to make a fitting for my data distribution
It looks to me like the problem you are seeing in the qqplot() is that your selection of the generalized t-distribution (t locat...

13 years ago | 0

Answered
noise removal by setting a threshold
What do you mean by remove noise by setting a threshold. Normally, in a noisy image model, the value at a particular pixel is as...

13 years ago | 0

Answered
smallest n such that vector(n) < a
x = 1:100; a = 50; [val,idx] = find(x<a,1,'last'); idx is the index of vec() and val is the value If the values in ...

13 years ago | 0

| accepted

Answered
How to count the amount of cells?
You want to count how many cells are in each element of the cell array? x = cell(3,1); x{1} = cell(2,1); x{2} = ce...

13 years ago | 2

Answered
Quantization of wavelet coefficients
Please be specific on what you mean by quantization here? If you mean something like an integer-to-integer wavelet transform, th...

13 years ago | 0

Answered
new version of matlab R2012b
That is in the Phased Array System Toolbox. Do you have that toolbox installed? Enter >>ver at the command line and ...

13 years ago | 0

Answered
Why do I keep getting this error on function
You need to define your function with the input argument function cac = cssm(fid) then pass the function the file iden...

13 years ago | 0

| accepted

Answered
How to get z for different x
x = [-2:0.1:2]; z = x.*(1-x).*(2-x)./((6-x).*(x-7)); You just forgot a ./ Now you should have a vector x = [-2...

13 years ago | 0

| accepted

Load more