已回答

How to draw same size rectangle on different image location

Try to adjust this protocol to your problem : L=0.5; N=100; for n=1:N p=randn; p2=randn; r=p+L; r2=p2+L...

How to draw same size rectangle on different image location

Try to adjust this protocol to your problem : L=0.5; N=100; for n=1:N p=randn; p2=randn; r=p+L; r2=p2+L...

9 years 前 | 1

已回答

variance equation of a white noise

you can program E or use *var* function, %var(x,0) %var(x,1)

variance equation of a white noise

you can program E or use *var* function, %var(x,0) %var(x,1)

9 years 前 | 0

已回答

How to add noise to rect fuction (rectangle) ?

The solution exists for one dimensional function, when you apply the function, you obtain a logical array, you need to convert i...

How to add noise to rect fuction (rectangle) ?

The solution exists for one dimensional function, when you apply the function, you obtain a logical array, you need to convert i...

9 years 前 | 0

已回答

how to make fft2 surf plot with z axis in dB?

This problem does not occur with the following test : H=exp(-randn(10).^2); F=abs(fftshift(fft2(H,200,200))); F=F/m...

how to make fft2 surf plot with z axis in dB?

This problem does not occur with the following test : H=exp(-randn(10).^2); F=abs(fftshift(fft2(H,200,200))); F=F/m...

9 years 前 | 0

已回答

Sine wave changing amplitude

Nuchto, That is the amplitude modulation, it is possible to simulate that type of signals: x=real(exp(j*2*pi*(0:0.1:10))); ...

Sine wave changing amplitude

Nuchto, That is the amplitude modulation, it is possible to simulate that type of signals: x=real(exp(j*2*pi*(0:0.1:10))); ...

9 years 前 | 0

已回答

Draw a polar plot from cartesian plot of gain function

In the code, v is not defined, i assume is it omegat, try : figure; polar(omegat,abs(gainfunction)); % 20*log10(abs(gain...

Draw a polar plot from cartesian plot of gain function

In the code, v is not defined, i assume is it omegat, try : figure; polar(omegat,abs(gainfunction)); % 20*log10(abs(gain...

9 years 前 | 0

已回答

Question about coordinate system in matlab

You can start inspecting the x,y values in sample, to get an idea try : >>imshow('circuit.tif') Then go to *Tools* in men...

Question about coordinate system in matlab

You can start inspecting the x,y values in sample, to get an idea try : >>imshow('circuit.tif') Then go to *Tools* in men...

9 years 前 | 0

已回答

Help generating a triangle using arrays, rotating triangle

Colin, you can try using the function *line* as the following : x1=[0 2]; y1=[0 0]; x2=[0 0]; y2=[0 1]; x3=[0 2]; ...

Help generating a triangle using arrays, rotating triangle

Colin, you can try using the function *line* as the following : x1=[0 2]; y1=[0 0]; x2=[0 0]; y2=[0 1]; x3=[0 2]; ...

9 years 前 | 0

已回答

How do you plot a surface in matlab?

There several tutorials that illustrate how to make a graph of f(x,y), here is simple example : [x,y]=meshgrid(-1:0.1:1); ...

How do you plot a surface in matlab?

There several tutorials that illustrate how to make a graph of f(x,y), here is simple example : [x,y]=meshgrid(-1:0.1:1); ...

9 years 前 | 0

| 已接受

已回答

i was asked to develop a program that will evaluate a function for -0.9<x<0.9 in steps of 0.1 by arithmetic statement, and series allowing as many as 50 terms. however, end adding terms when the last term only affects the 6th significant in answer

Developing Taylor requires to compute the derivative : x=-.9:.1:.9; f=1./sqrt(1+x.^2); g=1-1/2*(x.^2)+(1...

i was asked to develop a program that will evaluate a function for -0.9<x<0.9 in steps of 0.1 by arithmetic statement, and series allowing as many as 50 terms. however, end adding terms when the last term only affects the 6th significant in answer

Developing Taylor requires to compute the derivative : x=-.9:.1:.9; f=1./sqrt(1+x.^2); g=1-1/2*(x.^2)+(1...

9 years 前 | 0

已回答

Matrix for double pendulum not populating last column

This problem is sensitive to initial conditions, you can start by checking the equations, or values given to variables. In funct...

Matrix for double pendulum not populating last column

This problem is sensitive to initial conditions, you can start by checking the equations, or values given to variables. In funct...

9 years 前 | 0

已回答

i want to find angle between two 3d dots in kinect skeleton

try to verify these relations : r=sqrt(x^2+y^2+z^2); phi=acos(z/r); % radian theta=acos(x/(r*cos(phi)); radian ...

i want to find angle between two 3d dots in kinect skeleton

try to verify these relations : r=sqrt(x^2+y^2+z^2); phi=acos(z/r); % radian theta=acos(x/(r*cos(phi)); radian ...

9 years 前 | 0

已回答

compute the 2 dimensional (x,y) with respect to time

As long as there are three variables, you need to use : plot3(t,x,y); %.....

compute the 2 dimensional (x,y) with respect to time

As long as there are three variables, you need to use : plot3(t,x,y); %.....

9 years 前 | 0

已提交

Lorentz poles in complex plane

Generating n peaks in complex using nth version of Lorentz function.

9 years 前 | 1 次下载 |

已回答

Replace jth zero in vector with j

try : x = [1 0 2 4 -3 0 3 0]; y=x; [a,b]=find(x==0); y(b)=b;

Replace jth zero in vector with j

try : x = [1 0 2 4 -3 0 3 0]; y=x; [a,b]=find(x==0); y(b)=b;

9 years 前 | 0

已回答

Soundsc and sound not Playing anything

It can be the range of the vector, try *sound(y/max(y),Fs)*.

Soundsc and sound not Playing anything

It can be the range of the vector, try *sound(y/max(y),Fs)*.

9 years 前 | 0

已回答

Sir i am getting error :function isgray has been removed. Please suggest me which version of matlab i should use.

I think this function test an image of it is gray scale image, try to use an alternative way, using always logical answer, The g...

Sir i am getting error :function isgray has been removed. Please suggest me which version of matlab i should use.

I think this function test an image of it is gray scale image, try to use an alternative way, using always logical answer, The g...

9 years 前 | 0

已回答

how to generate three independent sinusoidal signal in matlab?

sin waves with different frequencies : Fs=20; f1=2; f2=4; f3=9; t=0:1/Fs:10-1/Fs; y1=sin(2*pi*f1*t); y2=sin(2*pi...

how to generate three independent sinusoidal signal in matlab?

sin waves with different frequencies : Fs=20; f1=2; f2=4; f3=9; t=0:1/Fs:10-1/Fs; y1=sin(2*pi*f1*t); y2=sin(2*pi...

9 years 前 | 0

| 已接受

已回答

Vector convergence in cartesian coordinates

There are 24 undefined variables *C1;G0;hMaz;hMpol;Alpha;theta;phi;EAj;EAi;EAk;Ku;Vol;P;C2;Is;P_hbar;P_Q;Ms;Nx;Nz;Ny;hx;hy;hz;*...

Vector convergence in cartesian coordinates

There are 24 undefined variables *C1;G0;hMaz;hMpol;Alpha;theta;phi;EAj;EAi;EAk;Ku;Vol;P;C2;Is;P_hbar;P_Q;Ms;Nx;Nz;Ny;hx;hy;hz;*...

9 years 前 | 0

已回答

A script that writes all even numbers from 1 to 100

Here is a beginning using while, : N=100; n=1; c=1; while n<N if mod(n,2)==0 E(c)=n;c=c+1; end n=n+1; en...

A script that writes all even numbers from 1 to 100

Here is a beginning using while, : N=100; n=1; c=1; while n<N if mod(n,2)==0 E(c)=n;c=c+1; end n=n+1; en...

9 years 前 | 0

已提交

Frequency time graph.

Three dimensional graph to represent one dimensional sine waves

9 years 前 | 1 次下载 |

已回答

What exactly is the "n-point DFT" that fft() computes?

N is the number of points used to calculate the fft, it does not increase physical resolution but adds more point to the spectru...

What exactly is the "n-point DFT" that fft() computes?

N is the number of points used to calculate the fft, it does not increase physical resolution but adds more point to the spectru...

9 years 前 | 0

已回答

General Question of Matlab.

Maybe you need to to understand the structure of the problem before trying to solving as program, or you try to understand the p...

General Question of Matlab.

Maybe you need to to understand the structure of the problem before trying to solving as program, or you try to understand the p...

9 years 前 | 0

已回答

Plotting Gamma Distribution, please help?

It is correct, you just need to exchange pdf with X : plot(x,pdf);

Plotting Gamma Distribution, please help?

It is correct, you just need to exchange pdf with X : plot(x,pdf);

9 years 前 | 1

已回答

How to generate a discrete square pulse, lets say N times?

You can either write the function or use built-in function, here is an example using 1000 samples : N=1e+3; Fs...

How to generate a discrete square pulse, lets say N times?

You can either write the function or use built-in function, here is an example using 1000 samples : N=1e+3; Fs...

9 years 前 | 0

已回答

Problems with snr function

Generally the formula is SNR=20log10(std(signal)/std(noise)) , in your case you have : snr=20*log10(std(xn)/std(ns...

Problems with snr function

Generally the formula is SNR=20log10(std(signal)/std(noise)) , in your case you have : snr=20*log10(std(xn)/std(ns...

9 years 前 | 0

已回答

convert number to string but keep it the same as it is

You can achieve that command using transformation from matrix to cells, if M is your matrix : M=magic(10); N=siz...

convert number to string but keep it the same as it is

You can achieve that command using transformation from matrix to cells, if M is your matrix : M=magic(10); N=siz...

9 years 前 | 0

已回答

Plotting 2-variable Function with integration using MatLab

The problem is in the function *int*, it is designed for symbolic calculation while your work with numerical one, if you have th...

Plotting 2-variable Function with integration using MatLab

The problem is in the function *int*, it is designed for symbolic calculation while your work with numerical one, if you have th...

9 years 前 | 0