Réponse apportée
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...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 13 ans il y a | 5

Réponse apportée
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...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
??? 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...

plus de 13 ans il y a | 0

Réponse apportée
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...

plus de 13 ans il y a | 2

| A accepté

Réponse apportée
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...

plus de 13 ans il y a | 0

Réponse apportée
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

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
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 =...

plus de 13 ans il y a | 1

| A accepté

Réponse apportée
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,...

plus de 13 ans il y a | 1

Réponse apportée
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...

plus de 13 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 13 ans il y a | 0

Réponse apportée
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 ...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
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; ...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 13 ans il y a | 1

Réponse apportée
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...

plus de 13 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
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; ...

plus de 13 ans il y a | 0

Réponse apportée
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 ...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
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)...

plus de 13 ans il y a | 0

Réponse apportée
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(...

plus de 13 ans il y a | 0

Réponse apportée
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...

plus de 13 ans il y a | 0

Réponse apportée
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...

plus de 13 ans il y a | 0

Réponse apportée
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...

plus de 13 ans il y a | 0

Réponse apportée
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...

plus de 13 ans il y a | 0

Réponse apportée
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 ...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 13 ans il y a | 2

Réponse apportée
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...

plus de 13 ans il y a | 0

Réponse apportée
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 ...

plus de 13 ans il y a | 0

Réponse apportée
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...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 13 ans il y a | 0

| A accepté

Charger plus