답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 5

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
??? 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년 초과 전 | 0

답변 있음
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년 초과 전 | 2

| 수락됨

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 1

| 수락됨

답변 있음
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년 초과 전 | 1

답변 있음
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년 초과 전 | 1

| 수락됨

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 1

답변 있음
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...

13년 초과 전 | 1

| 수락됨

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 2

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 0

| 수락됨

더 보기