Matlab
Explain the codes below
% Jake.m
% Generate a frequency selective fading
function [r, iout, qout] = Jake(idata, qdata, nsamp, fs, fc, NN, N1_arr, velocity, counter_arr, delay_time, attn, flat)
%****************************** variables *******************************
% idata input Ich data
% qdata input Qch data
% nsamp Number of samples to be simulated
% fs Sampling frequency (Hz)
% fc Carrier Frequency (Hz)
% NN Number of paths
% N1 Number of waves in order to generate fading
% velocity Mobile speed in Km/h
% counter Fading counter
% delay_time Delay for each fading path (ns)
% attn Attenuation level for different fading paths (dB)
% flat flat fading or not
% r Envelope of fading channel complex impulse response
% iout output Ich data
% qout output Qch data
%************************************************************************
v = velocity./3.6; % m/s
c = 3e8;
fm = fc*v/c; % Maximum doppler frequency (Hz)
delay_samp = round(delay_time.*fs.*1e-9); % normalized delay time in number of samples
total_attn = sum(10.^(-1.0.*attn./10.0)); % normalize the power
tstp = 1/fs; % minimum time resolution
iout = zeros(1,nsamp);
qout = zeros(1,nsamp);
r = zeros(1,nsamp);
theta = zeros(1,nsamp);
for i=1:NN
atts = 10.^(-0.05.*attn(i)); % attenuation for current path
[itmp, qtmp] = delay(idata, qdata, nsamp, delay_samp(i));
[r_single, iout_single, qout_single] = fade2(itmp, qtmp, nsamp, tstp, fm, N1_arr(i), counter_arr(i), flat);
counter_arr = counter_arr+200; % update counter
iout = iout + atts.*iout_single./sqrt(total_attn);
qout = qout + atts.*qout_single./sqrt(total_attn);
end
r = sqrt(iout.^2+qout.^2);
In: Electrical Engineering
Write a MATLAB function named numberWords() that takes a whole number as an argument and returns a string containing the number word for the whole numbers 0 - 999.
For example: numberWords(234) would return 'two hundred thirty-four'
If the input value is not a whole number between 0 - 999 then the function should return a string equivalent to 'ERROR'.
In: Electrical Engineering
Application |
A solar photovoltaic (PV) power system was installed outdoor near PMU campus. The objective is to study the environmental effects (Temp, Humidity, Dust, Wind…) on the PV panel total generated electric power. The environmental data should be acquired and monitored from a remote center in PMU Labs ( Your task is not to measure PV output power) |
Your Task |
To design a measurement system to meet the application requirements. Assume the availability of the following six sensor temperature, humidity, dust, light, solar radiation and wind speed/direction. |
c) Define the measurement system specifications to meet the above application requirements
1 |
|
2 |
|
3 |
|
4 |
|
d) Develop a feasible design: draw the measurement system block diagram and describe the function of all needed subsystems
In: Electrical Engineering
matlab code to calculate cost (min cost) of generators for 30 bus IEEE.
In: Electrical Engineering
An example of a PIC C program code for line following and obstacle avoiding robot? For it move forward and avoid an obstacle?
In: Electrical Engineering
Design and simulate a regulated power supply using a bridge rectifier, capacitors, and zener diode ( no integrated circuit). The source voltage is 110 plus or minus 10 Vrms, 60 Hz frequency. The output voltage is as follows (plus or minus 5%) : 4.5 V and 12 V
It has to be done on a breadboard. The rating of the adapter will be 12W and 5% regulation. To protect the circuit include a surge protection and fuse in the circuit design. The total cost of the components of the design should be less than $10. A total number of the elements should be less than 12 for reducing environmental impact. Test it on Multisim and breadboard. Please LIST each item that you used on the breadboard test exactly. I NEED YOU TO PERFORM IT ON A BREADBOARD as well as ON MULTISIM. SHOW the multilsim picture. SHOW ALL CALCULATIIONS NEATLY! DO NOT WRITE IN PEN OR CURSIVE! THANK YOU!
In: Electrical Engineering
Vocabulary: write the definition of the following words capital letters and give a synonymous for each word, then use the each word in a sentence. (TIRADE, WIZENED, PULCHRITUDINOUS, DISSEMINATE, CLEAVE)
In: Electrical Engineering
Draw the block diagram of a phase locked loop and discuss the operating principle of it
In: Electrical Engineering
Explain how P and N doping can be used to create a device that will only allow a flow of current in one direction. Include in your answer a description the movement of charge carriers when a forward or reverse bias are applied across the device.
In: Electrical Engineering
Question 2: sensor Char, medaling (17 pts)
Q2: Experimental data’s for relative temperature sensors
Table 1 |
T(C ) |
30 |
40 |
50 |
60 |
70 |
|
R( ohm) |
111.4658 |
115.6045 |
119.1927 |
123.3417 |
127.3224 |
||
Table 2 |
T(C ) |
30 |
40 |
50 |
60 |
70 |
|
Time |
0 |
60 sec |
120 sec |
180 |
240 |
||
R( ohm) |
111.4658 |
115.6045 |
119.1927 |
123.3417 |
127.3224 |
||
a) Compute the sensor sensitivity using the data off the table 1?
b) Study the sensor linearity based on the data of the table 1?
c) Discuss the sensor precision based on the data of table 2?
d) Use the data of table 2 to explain the different between random and systematic errors?
In: Electrical Engineering
For a general second order control system. On a complex plane graph, with real and imaginary axes, show the region where the roots of a stable second order control system must lie in order to satisfy the following performance conditions:
In: Electrical Engineering
** My system is RTD
Question 4: System Installation and Testing
Describe how you would install your system to minimize environmental effects on the sensor operation
Discuss the main error sources (not types: system & random) that would affect your system measurement accuracy.
Describe how you would test and calibrate the measurement system designed. Show details for one sensor to verify operation according to specifications
In: Electrical Engineering
In the MATLAB environment, display an image of a breast
mammogram from the MAMMO database. Apply gray-level scaling,
histogram equalization, and an LOG enhancement mask for image
enhancement as given below. Compare the enhanced images to original
image qualitatively.
LOG enhancement mask to be convolved with the image:
- 1 -1 -1
- 1 9 - 1
-1 -1 -1
MAMMO database:
http://peipa.essex.ac.uk/pix/mias/
In: Electrical Engineering
1. A given open loop room heating system has a gain of 1.2 and a time constant of 15 seconds. Derive the transfer function of the system in Laplace domain.
2. A closed loop proportional controller was implemented for the system described in Task 1 Q1 above to reduce the time constant to 10 seconds.
a. Draw the block diagram of the system, assuming that the error signal is the difference between the set and actual measured room temperatures.
b. Calculate the gain value (K) of the proportional control action that achieve the above response.
c. Derive the overall closed-loop transfer function in Laplace domain.
In: Electrical Engineering
analyze the performance of a gasoline engine at various loads based on data given and to determine the torque curve, power curve and performance parameters of BMEP, volumetric efficiency, and Air/fuel ratio, plotting the data vs RPM. Making three graphs: one graphing Torque and Power.
Also address t
a. How do the torque curve and power curve compare (max values @ same RPM)?
b. Is volumetric efficiency constant, or varying with RPM..what is trend?
c. Is BMEP a constant? Does it compare more with torque or power output?
Board Time | Absorber RPM-C | Torque | Barometer | Air Temp. | Air Flow | Air Flow |
sec | RPM | lb-ft | PSI | F | Data | CFM |
0.015 | 2172 | 53.876 | 14.21 | 64 | 345.86 | 34.59 |
0.030 | 2177 | 53.896 | 14.21 | 64 | 347.65 | 34.77 |
0.050 | 2180 | 54.011 | 14.21 | 64 | 342.63 | 34.26 |
0.070 | 2174 | 53.744 | 14.21 | 64 | 343.56 | 34.36 |
0.090 | 2182 | 53.595 | 14.21 | 64 | 349.31 | 34.93 |
0.110 | 2170 | 53.879 | 14.21 | 64 | 342.84 | 34.28 |
0.131 | 2174 | 53.754 | 14.21 | 64 | 344.96 | 34.50 |
0.151 | 2192 | 53.859 | 14.21 | 64 | 349.31 | 34.93 |
0.171 | 2178 | 53.808 | 14.21 | 64 | 344.01 | 34.40 |
0.188 | 2183 | 53.785 | 14.21 | 64 | 346.86 | 34.69 |
0.206 | 2182 | 53.872 | 14.21 | 64 | 344.62 | 34.46 |
0.226 | 2167 | 53.781 | 14.21 | 64 | 342.23 | 34.22 |
0.246 | 2174 | 53.714 | 14.21 | 64 | 347.26 | 34.73 |
0.266 | 2166 | 53.933 | 14.21 | 64 | 341.47 | 34.15 |
0.286 | 2160 | 53.659 | 14.21 | 64 | 343.18 | 34.32 |
0.306 | 2168 | 53.771 | 14.21 | 64 | 348.12 | 34.81 |
0.326 | 2165 | 54.028 | 14.21 | 64 | 342.30 | 34.23 |
0.340 | 2169 | 53.568 | 14.21 | 64 | 345.69 | 34.57 |
0.356 | 2175 | 53.612 | 14.21 | 64 | 346.64 | 34.66 |
0.376 | 2162 | 53.832 | 14.21 | 64 | 340.82 | 34.08 |
0.396 | 2166 | 53.487 | 14.21 | 64 | 345.96 | 34.60 |
0.416 | 2179 | 53.561 | 14.21 | 64 | 347.77 | 34.78 |
0.436 | 2166 | 53.490 | 14.21 | 64 | 342.03 | 34.20 |
0.456 | 2173 | 53.315 | 14.21 | 64 | 348.22 | 34.82 |
0.476 | 2171 | 53.440 | 14.21 | 64 | 342.23 | 34.22 |
0.492 | 2164 | 53.291 | 14.21 | 64 | 344.51 | 34.45 |
0.511 | 2171 | 53.183 | 14.21 | 64 | 346.14 | 34.61 |
0.531 | 2171 | 53.287 | 14.21 | 64 | 341.15 | 34.11 |
0.551 | 2165 | 52.919 | 14.21 | 64 | 343.62 | 34.36 |
0.571 | 2173 | 53.017 | 14.21 | 64 | 348.34 | 34.83 |
In: Electrical Engineering