answersLogoWhite

0

MATLAB (Matrix Laboratory)

MATLAB is a software and a package to implement signal processing. Using this tool one can create and test various signals & systems. These signals and systems can be tested for various parameters and operations. The real time simulation of signals, images, audio and video are performed using MATLAB. Various programs, syntax, applications and uses of MATLAB and signal processing can be discussed in this category. As the need for signal processing is increasing day by day, there is a need for separate category.

570 Questions

What is the best signal processing either a analog signal processing?

Digital signal processing is the best compared to analog signal. It is because the digital signal is more

  • efficient
  • error free
  • immune to noise

than an analog signal

How do you do modulation BPSK with a digital input the modulation must use matlab simulink?

BPSK Modulation can be done by using a multiplier. Digital data must be multiplied with the carrier frequency. In matlab simulink use a multiplier block to one input apply a sinusoidal generator & to the other a Pulse generator

Is the image of yourself in the mirror the real image?

No, an image formed in a mirror is unreal, because mirror reflects all the light rays off.

What is gaussian filter in term of image processing?

the gaussian filter is also known as Gaussian smoothing and is the result of blurring an image by a Gaussian function.

What is the Matlab code to generate unit step function?

Below code generates unit step function

n1=-4;

n2=5;

n0=0;

[y,n]=stepseq(n0,n1,n2);

stem(n,y);

xlabel('n')

ylabel('amplitude');

title('unit step');

It results in a unit step whose value is 1 for time T>0.

Can you use trapz command in matlab to integrate a matrix?

Yes.

Let us use an example:

x=1:10; % Data Set

z=1:20; % Range

y=x^2; % Equation

equation1=trapz(y,z) % This will integrate y over the range of z for your data

When integrating over a matrix:

x2=[ 1 2 3; 4 5 6]; % Matrix

y2=x*C; % Where c is any variable

equation2=trapz(y2);

% Will integrate over every column of your matrix and give you an array.

How calculated the value of resistor that is to be used in particular circuit?

To read the value of a resistor:

Resistors are color coded, you can use the chart found below

And how accurate the values of resistors are is their tolerance, also found in the chart

How do you change a .png image into a .gif image?

Already saved file i.e, .PNG. Open the Photoshop Application , then go to file menu, and select the OPen, where u already saved file is .PNG select it click ok. it will in photoshop file .PNG the again go to file menu then click save as option the name it and format it as .GIF and click it save button.

How do you insert image in another image using image editor?

It depends on the image editor. In Photoshop there's a option of "Place" under the "File" menu. Copy and paste sometimes works or drag and drop from a Windows Explorer (e.g. My Documents) window.

What is the Matlab code to generate a sine wave?

A=2; t = 0:0.0005:1;

x=A*sawtooth(2*pi*5*t,0.25); %5 Hertz wave with duty cycle 25%

plot(t,x);

grid

axis([0 1 -3 3]);

The above code can generate sine wave using Matlab.

You want the code of Discrete fourier transform in C language for your image processing program using a filter function to enhance the tiff image.?

/* Discrete Fourier Transform and Power Spectrum Calculates Power Spectrum from a Time Series Copyright 1985 Nicholas B. Tufillaro */ #include #include #define PI (3.1415926536) #define SIZE 512 double ts[SIZE], A[SIZE], B[SIZE], P[SIZE]; main() { int i, k, p, N, L; double avg, y, sum, psmax; /* read in and scale data points */ i = 0; while(scanf("%lf", &y) != EOF) { ts[i] = y/1000.0; i += 1; } /* get rid of last point and make sure # of data points is even */ if((i%2) == 0) i -= 2; else i -= 1; L = i; N = L/2; /* subtract out dc component from time series */ for(i = 0, avg = 0; i < L; ++i) { avg += ts[i]; } avg = avg/L; /* now subtract out the mean value from the time series */ for(i = 0; i < L; ++i) { ts[i] = ts[i] - avg; } /* o.k. guys, ready to do Fourier transform */ /* first do cosine series */ for(k = 0; k <= N; ++k) { for(p = 0, sum = 0; p < 2*N; ++p) { sum += ts[p]*cos(PI*k*p/N); } A[k] = sum/N; } /* now do sine series */ for(k = 0; k < N; ++k) { for(p = 0, sum = 0; p < 2*N; ++p) { sum += ts[p]*sin(PI*k*p/N); } B[k] = sum/N; } /* lastly, calculate the power spectrum */ for(i = 0; i <= N; ++i) { P[i] = sqrt(A[i]*A[i]+B[i]*B[i]); } /* find the maximum of the power spectrum to normalize */ for(i = 0, psmax = 0; i <= N; ++i) { if(P[i] > psmax) psmax = P[i]; } for(i = 0; i <= N; ++i) { P[i] = P[i]/psmax; } /* o.k., print out the results: k, P(k) */ for(k = 0; k <= N; ++k) { printf("%d %g\n", k, P[k]); } }

Matlab coding for line coding scheme?

There is various line coding schemes that can be used in Matlab including Manchester, polar, unipolar, and bipolar. The Matlab language allows you to write these codes in math-based notations making it easy to see solutions.

Program calculate determinant of matrices in matlab?

d = det(X) returns the determinant of the square matrix X. If X contains only integer entries, the result d is also an integer.

The determinant is computed from the triangular factors obtained by Gaussian elimination [L,U] = lu(A)

s = det(L) % This is always +1 or -1

det(A) = s*prod(diag(U))

The statement A = [1 2 3; 4 5 6; 7 8 9]

produces A =

1 2 3

4 5 6

7 8 9

This happens to be a singular matrix, so d = det(A) produces d = 0. Changing A(3,3) with A(3,3) = 0 turns A into a nonsingular matrix. Now d = det(A) produces d = 27.

For more info visit

http://www.mathworks.com/access/helpdesk/help/techdoc/ref/det.html

What is autonomous segmentation in digital image processing?

Autonomous = done automatically by a software (used in robotics)

Image segmentation = dividing the image into parts that can be used later to recognize relevant image features (like objects)

The definition of autonomous segmentation is summing up both terms and refers to a automatic, without human intervention, segmentation of the image. It means that the segmentation algorithms auto-calibrate themselves. This may seem a simple task for a controlled indoor environment, but can also become a huge complexity in outdoor scenes where the lightning conditions are ranging from complete darkness to direct sunlight on the sensor.

Commands for removing the clutter in matlab?

Not sure what you mean by "clutter". You can simplify your windows down to just the command window by toggling all of them off under the "windows" toolbar.

How can i plot fiber waveguide dispersion using matlab programme?

Hi,
First I assume you are familiar with the fiber characteristic wave equation. If not, it appears on many textbooks, like Okoshi Takanori, Amnon Yariv, Katsunary Okamoto or Dietrich Marcuze.
One option is to determine the "beta" ()propagation constant) at each "v" number separately. The low v numbers require high resolution since the char. equation oscillates very fast and erratically. Above v=1 it becomes relaxed and the beta shall be found very stably

Another thing is that if can make the relaxed approximated of using LP modes, rather than the full vectorial HE / EH / TM / TE, the equation if much simpler, If your fiber has small delta-n, below 0.02, this is the usually the case.

Good Luck.

Y. Sh.

What is the best matlab version for an engineer?

You could get a free license version of MATLAB such as Octave or FreeMat. You can find it very easily by a WWW search. Personally I do use MATLAB from the Mathworks, although you would have to purchase it from the Mathworks. Octave and FreeMat are essentially the same as MATLAB, except a few differences in syntax. If you are a student, you could purchase it at a low cost from the Mathworks. It is slick and simple to get into, and I think worth the cost.

What are the best online resources to learn MATLAB and Simulink from MathWorks?

There are some tutorials on Mathworks about MATLAB & Simulink and other specific fields like Digital Signal Processing, Control System, and Computational Math.

All available on the Mathworks site