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

거의 13년 전 | 0

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

거의 13년 전 | 0

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

거의 13년 전 | 2

| 수락됨

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

거의 13년 전 | 0

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

거의 13년 전 | 1

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

거의 13년 전 | 0

| 수락됨

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

거의 13년 전 | 0

| 수락됨

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

거의 13년 전 | 0

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

거의 13년 전 | 0

| 수락됨

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

거의 13년 전 | 1

| 수락됨

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

거의 13년 전 | 0

| 수락됨

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

거의 13년 전 | 0

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

거의 13년 전 | 1

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

거의 13년 전 | 1

| 수락됨

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

거의 13년 전 | 0

| 수락됨

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

거의 13년 전 | 0

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

거의 13년 전 | 1

| 수락됨

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

거의 13년 전 | 1

답변 있음
how can i calculate mean period
One way would be to use the autocorrelation sequence

대략 13년 전 | 0

답변 있음
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',[])...

대략 13년 전 | 8

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

대략 13년 전 | 1

| 수락됨

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

대략 13년 전 | 0

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

대략 13년 전 | 0

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

대략 13년 전 | 0

| 수락됨

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

대략 13년 전 | 0

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

대략 13년 전 | 0

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

대략 13년 전 | 0

| 수락됨

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

대략 13년 전 | 0

| 수락됨

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

대략 13년 전 | 0

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

대략 13년 전 | 1

더 보기