Réponse apportée
How can I find the integral of normpdf(X,1,0) from -inf to inf?
integral() was introduced in R2012a. It is used to numerically evaluate an integral, not symbolically and integral() can be unus...

presque 13 ans il y a | 0

Réponse apportée
How can I find the integral of normpdf(X,1,0) from -inf to inf?
F = @(x)normpdf(x, 0, 1); Q = integral(F,-Inf,Inf);

presque 13 ans il y a | 0

Réponse apportée
How to make a rectangular pulse train at 50 kHz frequency?
You did not specify the width of the pulse. I've made it 10 microseconds. t = 0 : 1/1e6 : .01; d = 0 : 1/50e3 :...

presque 13 ans il y a | 2

| A accepté

Réponse apportée
FFT of Sampled data
I'm assuming you meant "even and odd". Yes, the sampling frequency is 200 kHz for the downsampled by 2 data. Fs = 400e3;...

presque 13 ans il y a | 0

Réponse apportée
time signal to fft and back ifft
Note sure why you're dividing by the length of the signal and padding the DFT AND expecting to get the signal back. t = ...

presque 13 ans il y a | 1

Réponse apportée
How to plot the coherence function?
If you have the Signal Processing Toolbox, use mscohere() n = 0:599; x = cos(pi/4*n)+randn(size(n)); y = 1/2*sin(pi/...

presque 13 ans il y a | 0

| A accepté

Réponse apportée
difference in compression ratio for same wname..
I get exactly the same. Can you try to reproduce with an image from MATLAB imdata = imread('ngc6543a.jpg'); [C,S] = ...

presque 13 ans il y a | 0

| A accepté

Réponse apportée
what is the compression ratio?? if i compare 'db' compression ratio with my designed filter..is it should be low or high to be efficient?
No, Unfortunately, the db4 wavelet filters is doing much better than yours. A compression ratio of 0 means that none of the ...

presque 13 ans il y a | 0

Réponse apportée
what is the compression ratio?? if i compare 'db' compression ratio with my designed filter..is it should be low or high to be efficient?
The compression ratio in the wavelet domain is usually expressed as the number of wavelet coefficients that are zero divided by ...

presque 13 ans il y a | 0

| A accepté

Réponse apportée
how to store (wcodemat) output ?
wcodemat() outputs a matrix the same size as the input matrix so you have the output as a variable. You can then just save it as...

presque 13 ans il y a | 1

| A accepté

Réponse apportée
i am trying to build my new wavelet. i used wavemngr but an error occured while doing decomposition using the new wavelet. kindly help me out..this is the code i used
You should have an M-file that just defines the scaling filter for an orthogonal wavelet So for example: function h = ne...

presque 13 ans il y a | 0

| A accepté

Réponse apportée
How can I plot This ?
x = 0.2:0.01:0.6; y = 4*(sqrt(1-x.^2))./(2*pi*x); plot(x,y) You should always post your code.

presque 13 ans il y a | 0

Réponse apportée
fft matlab, scaling amplitude problem
You should always show your code: fs = 1000; t = 0:1/fs:1-1/fs; L = length(x); xdft = fft(x)/L; plot(abs(xdft))...

presque 13 ans il y a | 1

Réponse apportée
fix the error? ??? Undefined function or method 'conv2' for input arguments of type 'double' and attributes 'full 3d complex'.
I'm sure the problem is coming from the fact that your input I is 3-D. What would you expect 2-D convolution to do with a 3-D ar...

presque 13 ans il y a | 1

| A accepté

Réponse apportée
cell to matrix conversion
Then as Azzi says, just extract them in a for loop X = {[] [] [1,2,3;1,3,4] [1,2,3,4;1,3,4,2]}; for ii = 1:4 si...

presque 13 ans il y a | 0

| A accepté

Réponse apportée
cell to matrix conversion
X = {[] [] [1,2,3;1,3,4] [1,2,3,4;1,3,4,2]}; [A,B,C,D] = deal(X{:}); Note that A and B are empty as expected.

presque 13 ans il y a | 0

Réponse apportée
how can i find the lsim info for this transfer function
G = tf(1,[1 2 5]); % whatever your transfer function is t=0:0.001:1; u=100*heaviside(t); % Step in 100 level resp = l...

presque 13 ans il y a | 1

| A accepté

Réponse apportée
Returning an error with my "if" statement.
Honglei is absolutely correct. Perhaps you have not added the folder where the file exists to the MATLAB path? If that is the ca...

presque 13 ans il y a | 1

Réponse apportée
how can i calculate mean period
One way would be to use the autocorrelation sequence

presque 13 ans il y a | 0

Réponse apportée
How to make only x-axis invisible (y-axis stays visible)?
without seeing your code, a simple way is just to set the 'xtick' property to [] plot(randn(100,1)); set(gca,'xtick',[])...

presque 13 ans il y a | 8

Réponse apportée
How to time shift a signal
You can just create a vector of zeros and fill it with the pulses fc=30e3; t = -tc : 1e-7 : tc; y = zeros(3*le...

presque 13 ans il y a | 1

| A accepté

Réponse apportée
i am working on wavelet filter for image analysis.
I don't see how that link will work except to give somebody a link to their own google drive. If you have your wavelet coeffi...

presque 13 ans il y a | 0

Réponse apportée
How to determine the polynomial that provides the best fit to this data and use it to predict the thermal efficiency?
You have to know what order polynomial you want to fit. Then use polyfit(). Read the help for polyfit() to see how to use the...

presque 13 ans il y a | 0

Réponse apportée
Gamma CDF and PDF
The probability that the random variable following that probability law is less than 5 is the integral of the CDF from 0 to 5 ...

presque 13 ans il y a | 0

| A accepté

Réponse apportée
How to make a loop to generate wavelet coefficients of multiple images and save them?
Why are you attempting to perform the wavelet transform on scrfiles? I = imread(filename); [c,s]=wavedec2(srcfiles,2,'db1'...

presque 13 ans il y a | 0

Réponse apportée
How to make a loop to generate wavelet coefficients of multiple images and save them?
The wavelet coefficients are the output of wavedec2(). You can can simply save them in a matrix if the images are all the same s...

presque 13 ans il y a | 0

Réponse apportée
function I do not really understand, could somebody give me a hint?
u is just the variable for integration, so I could define a function function y = myfun(x) y = x.^2; end and the...

presque 13 ans il y a | 0

| A accepté

Réponse apportée
cell function not enough input arguments
I think the problem you are having is that you likely have the Statistics Toolbox installed. There is a function called silhouet...

presque 13 ans il y a | 0

| A accepté

Réponse apportée
function I do not really understand, could somebody give me a hint?
This input x0 = [1.1768 0.082259 0.83746 -0.54589]; is fed into CallPriceF() as the input argument, parameters. Then, ...

presque 13 ans il y a | 0

Réponse apportée
How can I create function that have char input arguments?
How are you inputting dir to the function, are you inputting it as 'x', 'y', or 'z'? It should work. I'm using direc below...

presque 13 ans il y a | 1

Charger plus