Respondida
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...

más de 13 años hace | 0

| aceptada

Respondida
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...

más de 13 años hace | 5

Respondida
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...

más de 13 años hace | 0

| aceptada

Respondida
??? 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...

más de 13 años hace | 0

Respondida
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...

más de 13 años hace | 2

| aceptada

Respondida
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...

más de 13 años hace | 0

Respondida
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

más de 13 años hace | 0

| aceptada

Respondida
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 =...

más de 13 años hace | 1

| aceptada

Respondida
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,...

más de 13 años hace | 1

Respondida
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...

más de 13 años hace | 1

| aceptada

Respondida
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...

más de 13 años hace | 0

Respondida
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 ...

más de 13 años hace | 0

| aceptada

Respondida
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; ...

más de 13 años hace | 0

| aceptada

Respondida
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...

más de 13 años hace | 1

Respondida
fun1= normrnd(20,sqrt(0.6),[400 400]); fun1 = 20 + sqrt(0.6)*randn(400); in above function 20 is mean and 0.6 is a variance; fun1 should generate 20 mean and 0.6 variance matrix of 400*400 . but i got 20 mean and variance is 0.0018,,,so what is prob
X = normrnd(20,sqrt(0.6),400,400); meanz = mean(X); varz = var(X); I get approximately 20 as the mean of every col...

más de 13 años hace | 1

| aceptada

Respondida
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...

más de 13 años hace | 0

| aceptada

Respondida
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; ...

más de 13 años hace | 0

Respondida
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 ...

más de 13 años hace | 0

| aceptada

Respondida
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)...

más de 13 años hace | 0

Respondida
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(...

más de 13 años hace | 0

Respondida
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...

más de 13 años hace | 0

Respondida
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...

más de 13 años hace | 0

Respondida
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...

más de 13 años hace | 0

Respondida
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...

más de 13 años hace | 0

Respondida
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 ...

más de 13 años hace | 0

| aceptada

Respondida
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...

más de 13 años hace | 2

Respondida
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...

más de 13 años hace | 0

Respondida
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 ...

más de 13 años hace | 0

Respondida
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...

más de 13 años hace | 0

| aceptada

Respondida
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...

más de 13 años hace | 0

| aceptada

Cargar más