Beantwortet
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...

etwa 13 Jahre vor | 0

Beantwortet
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);

etwa 13 Jahre vor | 0

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

etwa 13 Jahre vor | 0

Beantwortet
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);.....

etwa 13 Jahre vor | 0

| akzeptiert

Beantwortet
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...

etwa 13 Jahre vor | 0

Beantwortet
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/...

etwa 13 Jahre vor | 0

Beantwortet
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...

etwa 13 Jahre vor | 0

| akzeptiert

Beantwortet
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...

etwa 13 Jahre vor | 3

Beantwortet
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...

etwa 13 Jahre vor | 0

Beantwortet
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...

etwa 13 Jahre vor | 1

Beantwortet
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...

etwa 13 Jahre vor | 0

Beantwortet
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 : ...

etwa 13 Jahre vor | 0

Beantwortet
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...

etwa 13 Jahre vor | 0

Beantwortet
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...

etwa 13 Jahre vor | 1

Beantwortet
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...

etwa 13 Jahre vor | 0

| akzeptiert

Beantwortet
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...

etwa 13 Jahre vor | 0

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

etwa 13 Jahre vor | 0

| akzeptiert

Beantwortet
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);

etwa 13 Jahre vor | 0

| akzeptiert

Beantwortet
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...

etwa 13 Jahre vor | 0

| akzeptiert

Beantwortet
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...

etwa 13 Jahre vor | 0

| akzeptiert

Beantwortet
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(...

etwa 13 Jahre vor | 0

Beantwortet
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...

etwa 13 Jahre vor | 0

Beantwortet
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 ...

etwa 13 Jahre vor | 0

| akzeptiert

Beantwortet
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...

etwa 13 Jahre vor | 0

Beantwortet
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...

etwa 13 Jahre vor | 0

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

etwa 13 Jahre vor | 0

| akzeptiert

Beantwortet
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 ...

etwa 13 Jahre vor | 0

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

etwa 13 Jahre vor | 0

| akzeptiert

Beantwortet
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...

etwa 13 Jahre vor | 0

Beantwortet
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...

etwa 13 Jahre vor | 1

Mehr laden