回答済み

how to save result of for loop

Outside the loop allocate a 3D matrix of zeros Smat = zeros(n,n,p); % p here is the upper bound on the for loop Then ins...

how to save result of for loop

Outside the loop allocate a 3D matrix of zeros Smat = zeros(n,n,p); % p here is the upper bound on the for loop Then ins...

約5年 前 | 0

回答済み

Question about ilaplace()

I think you mean dirac(2,t) and not dirac(t,2) There is a function in Symbolic Toolbox called dirac() that takes the...

Question about ilaplace()

I think you mean dirac(2,t) and not dirac(t,2) There is a function in Symbolic Toolbox called dirac() that takes the...

約5年 前 | 0

回答済み

How to find psi function in Haar continuous wavlelet transform:CWT

Hi Hai, For the CWT you will get 10 rows. For the MODWT, the final row is the scaling coefficients as you guessed. Yes, when ...

How to find psi function in Haar continuous wavlelet transform:CWT

Hi Hai, For the CWT you will get 10 rows. For the MODWT, the final row is the scaling coefficients as you guessed. Yes, when ...

約5年 前 | 1

回答済み

Why is my fft peak frequency slightly lower than my known input signal?

Hi David, You are using the wrong sampling frequency. The actually sampling frequency is 51200. You can see this by entering ...

Why is my fft peak frequency slightly lower than my known input signal?

Hi David, You are using the wrong sampling frequency. The actually sampling frequency is 51200. You can see this by entering ...

約5年 前 | 0

回答済み

How to find psi function in Haar continuous wavlelet transform:CWT

Hi Hai Tran, If you are using dyadic scales as you do above, I think you would be better to use the MODWT (introduced in R2015b,...

How to find psi function in Haar continuous wavlelet transform:CWT

Hi Hai Tran, If you are using dyadic scales as you do above, I think you would be better to use the MODWT (introduced in R2015b,...

約5年 前 | 1

| 採用済み

回答済み

Why is my fft peak frequency slightly lower than my known input signal?

Hi David, we don't see what fs is in your code above, but in general your code looks like it would generate the expected answer....

Why is my fft peak frequency slightly lower than my known input signal?

Hi David, we don't see what fs is in your code above, but in general your code looks like it would generate the expected answer....

約5年 前 | 2

| 採用済み

回答済み

How do i compare FFT of signals, where Amplitude decreases by increasing sampling time?

The problem is in your x2 signal, the frequency 320 Hz does not fall in a DFT bin because you data length is 1310 samples and yo...

How do i compare FFT of signals, where Amplitude decreases by increasing sampling time?

The problem is in your x2 signal, the frequency 320 Hz does not fall in a DFT bin because you data length is 1310 samples and yo...

約5年 前 | 0

回答済み

Wavelet synchrosqueezed transform decomposition

Hi Marc, synchrosqueezing and the closely related continuous wavelet transform do not provide perfect reconstruction of the inpu...

Wavelet synchrosqueezed transform decomposition

Hi Marc, synchrosqueezing and the closely related continuous wavelet transform do not provide perfect reconstruction of the inpu...

約5年 前 | 1

| 採用済み

回答済み

How to add specific rows that meet a condition?

How about just [sum(B(A<=1)) sum(B(A>1 & A<=2))]

How to add specific rows that meet a condition?

How about just [sum(B(A<=1)) sum(B(A>1 & A<=2))]

約5年 前 | 0

回答済み

FFT default process when samples are NOT a power of 2?

That is not part of a MathWorks' product. It is part of the this tool on the file exchange <http://www.mathworks.com/matlabcent...

FFT default process when samples are NOT a power of 2?

That is not part of a MathWorks' product. It is part of the this tool on the file exchange <http://www.mathworks.com/matlabcent...

約5年 前 | 0

| 採用済み

回答済み

Discrete Wavelet Transform-Based Satellite Image Resolution Enhancement

Hi Meena, I would start by looking at this paper <http://www.ijcsit.com/docs/Volume%25204/Vol4Issue6/ijcsit2013040619.pdf sup...

Discrete Wavelet Transform-Based Satellite Image Resolution Enhancement

Hi Meena, I would start by looking at this paper <http://www.ijcsit.com/docs/Volume%25204/Vol4Issue6/ijcsit2013040619.pdf sup...

約5年 前 | 0

回答済み

Wavelet synchrosqueezed transform decomposition

Hi Marc, the synchrosqueezed transform does not specifically provide "details" like the discrete wavelet transform, but it does ...

Wavelet synchrosqueezed transform decomposition

Hi Marc, the synchrosqueezed transform does not specifically provide "details" like the discrete wavelet transform, but it does ...

約5年 前 | 1

回答済み

Error related to "wden" in wavelet toolbox

Hi Steven, This code runs correctly on R2014a. snr = 3; init = 2055615866; [xref,x] = wnoise(3,11,snr,init); lev ...

Error related to "wden" in wavelet toolbox

Hi Steven, This code runs correctly on R2014a. snr = 3; init = 2055615866; [xref,x] = wnoise(3,11,snr,init); lev ...

6年以上 前 | 1

| 採用済み

回答済み

How can I calculate 2D wavelet coefficients for multi resolution analysis given a 2D Array?

Varun, to respond to this: _"Sorry for commenting on my own post, but could someone explain the principle of wavelet tree dec...

How can I calculate 2D wavelet coefficients for multi resolution analysis given a 2D Array?

Varun, to respond to this: _"Sorry for commenting on my own post, but could someone explain the principle of wavelet tree dec...

6年以上 前 | 0

回答済み

How can I calculate 2D wavelet coefficients for multi resolution analysis given a 2D Array?

Hi Varun, Do you want the 2-D wavelet coefficients or wavelet packet coefficients? Those are different transforms. Your post ind...

How can I calculate 2D wavelet coefficients for multi resolution analysis given a 2D Array?

Hi Varun, Do you want the 2-D wavelet coefficients or wavelet packet coefficients? Those are different transforms. Your post ind...

6年以上 前 | 0

回答済み

Visualizing Gabor filters using mesh

Unless you have posted the incorrect version of my_gabor_filter.m, I show that it errors on this line actually: exp3 = (e...

Visualizing Gabor filters using mesh

Unless you have posted the incorrect version of my_gabor_filter.m, I show that it errors on this line actually: exp3 = (e...

7年弱 前 | 0

回答済み

How to put errorbars

Do you have the Statistics Toolbox? x = 1:10; y = sin(x); e = std(y)*ones(size(x)); plot(x,y,'b') hold on...

How to put errorbars

Do you have the Statistics Toolbox? x = 1:10; y = sin(x); e = std(y)*ones(size(x)); plot(x,y,'b') hold on...

7年弱 前 | 0

回答済み

error in writing an equation

x = 0:.01:5; y = (3*sin(x).*cos(x))./((sin(x).^3)+(cos(x)).^3);

error in writing an equation

x = 0:.01:5; y = (3*sin(x).*cos(x))./((sin(x).^3)+(cos(x)).^3);

7年弱 前 | 1

| 採用済み

回答済み

send function to a function

You should always report the errors you get, that is very helpful in allowing people to help you. I see a number of immedia...

send function to a function

You should always report the errors you get, that is very helpful in allowing people to help you. I see a number of immedia...

7年弱 前 | 0

回答済み

matrix shape is incorrect??

You don't give us all the variables here so we can't tell you how to change in the loop, but the simple thing to do is at the en...

matrix shape is incorrect??

You don't give us all the variables here so we can't tell you how to change in the loop, but the simple thing to do is at the en...

7年弱 前 | 0

回答済み

plot normal distribution plot on histogram of residuals

Here is one way, I'll use Data as the residuals Data = randn(1000,1); %just making up some junk data binWidth = 0.7; %This...

plot normal distribution plot on histogram of residuals

Here is one way, I'll use Data as the residuals Data = randn(1000,1); %just making up some junk data binWidth = 0.7; %This...

7年弱 前 | 1

| 採用済み

回答済み

??? Undefined function or method 'gauss' for input arguments of type 'double'.

I'll leave aside whether it is prudent to fit a normal distribution to these data. Do you have the Statistics Toolbox install...

??? Undefined function or method 'gauss' for input arguments of type 'double'.

I'll leave aside whether it is prudent to fit a normal distribution to these data. Do you have the Statistics Toolbox install...

7年弱 前 | 0

回答済み

??? Undefined function or method 'gauss' for input arguments of type 'double'.

gauss() is not a MathWorks' function. Have you downloaded this function from somewhere? If so, you need to add the folder whe...

??? Undefined function or method 'gauss' for input arguments of type 'double'.

gauss() is not a MathWorks' function. Have you downloaded this function from somewhere? If so, you need to add the folder whe...

7年弱 前 | 0

回答済み

How to create categorical array from integer array?

Which version of MATLAB are you running? I do not have any problem executing that code on R2014a or R2013b. If you enter ...

How to create categorical array from integer array?

Which version of MATLAB are you running? I do not have any problem executing that code on R2014a or R2013b. If you enter ...

7年弱 前 | 0

| 採用済み

回答済み

count 1's in binary

Hi Sasha, I'm presuming your binary number is a character array: s = '001111000000011100000000011111'; K1 = strfind(s,'1...

count 1's in binary

Hi Sasha, I'm presuming your binary number is a character array: s = '001111000000011100000000011111'; K1 = strfind(s,'1...

7年弱 前 | 0

回答済み

Bug in matlab R2012b version

In R2012b with win7 and a 64-bit machine I get the following: A = 0.5:0.1:.8; abs(A(3)-0.7) ans = 1.1102e-16 ...

Bug in matlab R2012b version

In R2012b with win7 and a 64-bit machine I get the following: A = 0.5:0.1:.8; abs(A(3)-0.7) ans = 1.1102e-16 ...

7年弱 前 | 0

回答済み

hi members i have error using my matlab code "Subscripted assignment dimension mismatch" plz help me out.

There is no error there unless you have already set B equal to something in your workspace, clear the variables used here and th...

hi members i have error using my matlab code "Subscripted assignment dimension mismatch" plz help me out.

There is no error there unless you have already set B equal to something in your workspace, clear the variables used here and th...

7年弱 前 | 0

回答済み

How to save an array output to file every 1000 iterations?

OK, so simply change the filename each time. In the following example I just create a file called Iteration1000.txt, Iteration20...

How to save an array output to file every 1000 iterations?

OK, so simply change the filename each time. In the following example I just create a file called Iteration1000.txt, Iteration20...

7年弱 前 | 0

回答済み

Why the amplitude of fft computing is a little bit different from a known value?

You have to realize that the frequency spacing between DFT elements depends on the length of the DFT and the sampling frequency....

Why the amplitude of fft computing is a little bit different from a known value?

You have to realize that the frequency spacing between DFT elements depends on the length of the DFT and the sampling frequency....

7年弱 前 | 1

| 採用済み

回答済み

How to save an array output to file every 1000 iterations?

If its just a matrix, then you can use dlmwrite() with the '-append' option that will simply append the data. By default, dlmwri...

How to save an array output to file every 1000 iterations?

If its just a matrix, then you can use dlmwrite() with the '-append' option that will simply append the data. By default, dlmwri...

7年弱 前 | 0