Tuesday, October 29, 2019
Matlab problem Assignment Example | Topics and Well Written Essays - 1250 words
Matlab problem - Assignment Example It is to see to it that the resistors used are not unnecessarily too many and that the value of resistance that they form in combination are the closest to the desired value of resistance. Problem statement Resistors are measured in SI units known as ohms. In a bid to ease the process of manufacturing in bulk, the manufacturers of resistors usually do it in some standard set measures. These standard resistors are known as E12 resistors. They are the resistors with the values 10 ?; 12 ?; 15 ?; 18 ?; 22 ?; 27 ?; 33 ?; 39 ?; 47 ?; 56 ?; 68 ?; and 82 ? Designers of electrical components who which incorporate the use of resistors usually design for some arbitrary resistance values which shall best suit the requirements of the component under design. Given that resistors are manufactured in the 12 standard values, this implies that the designer shall have make an appropriate combination of a number of the standard resistors to form a value that is as close to the designed value of resistan ce as is practically possible. The combination should use as few resistors as possible to minimize costs and this calls for proper optimization. In this task, resistors are to be combined in series since resistors combining in series have the total resistance being the sum of the individual resistances of each one of the resistors connected in series. In this problem the designer desires to get optimization modes of combining resistors in series to get the following values of resistances:- 20 ?; 100 ?; 200 ?; 1k ?; 2k ?; 50k ?; 100k ?; 2m ?; 20M ?; 150M ?. Method The method employed in solving this problem takes advantage of the fact that each one of the E12 resistance values form a geometric series, they are all approximately 21% larger than the previous value. The method employed also takes advantage of the fact that for resistors in series, the total resistance is given by summing up the value of each of the individual resistances of the resistors connected in series. i.e, RT = R 1 + R2 + R3 The method employed also targeted at making the program user friendly. It was to engage the user in a human like dialogue and hence be usable even by people who have no knowledge of programming. In this regard, the method employed was to write a program code that would ask for some two information from the user of the program. The first information to be inquired from the user is the desired value of resistance (target value). In this case the user would input one of the following as desired; 20 ?; 100 ?; 200 ?; 1k ?; 2k ?; 50k ?; 100k ?; 2m ?; 20M ?; 150M ?. The second information to be inquired from the user is the maximum number of resistors that can be combined. This was introduced in a bid to cut down on the cost of manufacturing. The method employed also involved the use of shorthand in which case, M, K and R were used instead of M ?; K ? and ? respectively. So as to make it possible for the universally accepted and used shorthand used by electrical engineers be in put in the program by the users. Results and discussion The program so formed is user friendly and able to ask for the two values from the user, i.e. the value of resistance desired and the maximum number of resistors to be combined. The program is also able to accept values of input written in electrical engineersââ¬â¢
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.