답변 있음
Random number generator based on probability distribution
hi, 1)Concerning C/C++ there is function rand() in h file "math.h", but i am sure there are other statistical libraries to d...

대략 13년 전 | 0

답변 있음
Element wise multiplication by a vector
hi, Im not sure about your expectations but try Kronecker product : T=rand(4); V=1:4; G=kron(T,V);

대략 13년 전 | 0

답변 있음
How to visualize a matrix?
hi, try simply : f=[ 00001 00000 00000 01000]; plot(f); You will get the same plot as your fig...

대략 13년 전 | 0

답변 있음
Help with the program of creating matrices.
hi, you did no explain well your problem, try to use these lines : J=rand(7,8); J1=diff(J); J2=diff(J); J3=diff(J2);.....

대략 13년 전 | 0

| 수락됨

답변 있음
SURF 2D. How is possible.
hi Nuchto you also have to ask : HOW plot make 2D representation of 1D data? i think that this is about theoretical concepti...

대략 13년 전 | 0

답변 있음
How to calculate the FFT on 320e3 points?
hi, Giorgio The computation wont take that long, try mu submission: <http://www.mathworks.com/matlabcentral/fileexchange/...

대략 13년 전 | 0

답변 있음
FFT function from raw sound pressure data
hi Sam, try this code . % Given you vector p and time . Fs=1; % sampling frequency. L=length(p); N=ceil(log2(L)); f...

대략 13년 전 | 0

| 수락됨

답변 있음
Calculating Fourier Series Coefficients
hi Jay , computing a0 bk and ck is bout theory i think, anyway try : You have first to construct the original signal "Squ...

대략 13년 전 | 3

답변 있음
Magnatic field in surface coil for overlapping conductor
hi, delete this portion : L = input('Please enter the grid length and size [l s]: '); N = L(2); l = L(1); A...

대략 13년 전 | 0

답변 있음
Solving 3 equations with 3 unknowns
hi try , D=solve('x*log(y/a)=0.0972','x*log((y-1010*z)/(y-2145*z))=0.11285','x*log((y-2145*z)/(y-3395*z))=0.10953','x','y...

대략 13년 전 | 1

답변 있음
How to create 3D sine array?
hi Sarah, first the time axis is not properly sampled Fs=30; Time = [0:1/Fs:1000-1/Fs]; Can i ask you what is the p...

대략 13년 전 | 0

답변 있음
Image processing GLCM gray level cooccurance matrix
hi, We already discussed that topic , so as to avoid redundancy take a quick look at this topic you will find the answer : ...

대략 13년 전 | 0

답변 있음
how to use "while" in writing function?
hi Duong, while loop must be used because after each iteration you have to check a if certain condition is met or not : Af...

대략 13년 전 | 0

답변 있음
value changes when running each time
hi kash, i quote , from Wikipedia : " Commonly used initialization methods are Forgy and Random Partition" so each time you r...

대략 13년 전 | 1

답변 있음
Using Trapz in matlab
hi, Brandon In this example you have to use function handle ,so what i understand is that you need to see when the two metho...

대략 13년 전 | 0

| 수락됨

답변 있음
plz explain me the code which i m describe below.
hi,this code is about wireless localization , the figure shows the nodes distribution in space delimited by "BorderLength" varia...

대략 13년 전 | 0

답변 있음
Which noise model is used in the Asynchronous Machine of SimPowerSystem Module?
hi, try both : AWGN , and Band limited Noise components .

대략 13년 전 | 0

| 수락됨

답변 있음
How can I plot a sym variable?
hi did you try this : syms x y dy y=4*x*cos(x)+2*x^cos(x^2) dy=diff(y,1); figure, ezplot(y); hold on; ezplot(dy);

대략 13년 전 | 0

| 수락됨

답변 있음
How i generate two dimensional membership function and plot it?
hi, there are many ways , you can find them in Tutorials...but for fast way : x=0:0.1:10; y=trapmf(x,[1 5 7 8]); z=y'*y...

대략 13년 전 | 0

| 수락됨

답변 있음
can anyone help me to supress the high amplitude part and only keeep low amplitude part in the signal below
hi, do you have two separate signals or both of them combined into one signle ? you can re scale the Large signal by multiplyi...

대략 13년 전 | 0

| 수락됨

답변 있음
How to return i,j locations for contor location
hi , you can find the x/y coordinates of specified value in matrix : let s take a simple example: G=rand(542,770); G(...

대략 13년 전 | 0

답변 있음
I need the Solution of this equation
hi, A=2.5; B=3.18; C=4.25; D=0.15; f=@(E) A + B.*(log(E)./E)+ C.*(log(E)./E).^2 + D*(E./log(E)) E=1:0.5:10; figure, f...

대략 13년 전 | 0

답변 있음
How do I calculate an infinite series using a function file with for-end loops?
hi gordon, you function returns a scalar or vector values ? is this exp(x) Taylor series ? you can try this light version ...

대략 13년 전 | 0

| 수락됨

답변 있음
How to load a excel file and 2D plot command!
try : doc xlsread Suppose you have a excel file 'Class.xlsx' with the following data : 1 4 1,5 1 In MATH comm...

대략 13년 전 | 0

답변 있음
fourrier analysis pwelch command
hi, Rune, you mean you want to use built-in spectrum , ok try this : Fs=1000; t=0:1/Fs:.3; x=cos(2*pi*t*200)+randn(size...

대략 13년 전 | 0

답변 있음
Replace elements of matrix
hi, try ; F=matrix; for i=1:length(vector) F(F==vector(i))=0; end

대략 13년 전 | 0

| 수락됨

답변 있음
Problem with plotting functions
hi, you can use zoom in/out with command : Syntax : zoom on zoom off zoom out zoom reset zoom xon zoom yon ...

대략 13년 전 | 0

답변 있음
how to compress a video?
hi, If you already use "avifile" , then look at its properties : On Windows: 'Indeo3''Indeo5''Cinepak''MSVC''RLE''None'

대략 13년 전 | 0

| 수락됨

답변 있음
How to pause the code?
hi Chan, you can use the function " keyboard" : doc keyboard; When you insert the function in function/script , it st...

대략 13년 전 | 0

답변 있음
how to solve iterative equations ?
hi, you can solve your equation by many ways , try : a=solve('2*u-3*log(u-0.5)+2*x','u') u=subs(a,linspace(0,1,30)); pl...

대략 13년 전 | 1

더 보기