Answered
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 years ago | 0

Answered
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 years ago | 0

Answered
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 years ago | 0

Answered
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 years ago | 0

| accepted

Answered
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 years ago | 0

Answered
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 years ago | 0

Answered
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 years ago | 0

| accepted

Answered
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 years ago | 3

Answered
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 years ago | 0

Answered
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 years ago | 1

Answered
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 years ago | 0

Answered
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 years ago | 0

Answered
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 years ago | 0

Answered
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 years ago | 1

Answered
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 years ago | 0

| accepted

Answered
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 years ago | 0

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

13 years ago | 0

| accepted

Answered
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 years ago | 0

| accepted

Answered
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 years ago | 0

| accepted

Answered
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 years ago | 0

| accepted

Answered
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 years ago | 0

Answered
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 years ago | 0

Answered
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 years ago | 0

| accepted

Answered
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 years ago | 0

Answered
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 years ago | 0

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

13 years ago | 0

| accepted

Answered
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 years ago | 0

Answered
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 years ago | 0

| accepted

Answered
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 years ago | 0

Answered
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 years ago | 1

Load more