Question: that's the file information Name Size Bytes Class Attributes i 1x200 1600 double v 1x200 1600 double Problem: (100 points) Create a script to do

that's the file information

Name Size Bytes Class Attributes

i 1x200 1600 double v 1x200 1600 double

that's the file information Name Size Bytes Class Attributes i 1x200 1600double v 1x200 1600 double Problem: (100 points) Create a script to

Problem: (100 points) Create a script to do the following i) Read in the voltage and current data using load command from the filename shown in the parameters file for this assignment. ii) Use the least squares method shown in class to estimate the parameters I and V in the diode model: 1er . Name your Matlab variables for the estimates l-hat and VThat. Use the fprintf function to print the numerical results to a text file named diode_param_estimates.txt You'll need to study the help info for fprintf. You'll have to use fopen, and you should use fclose before the end of your script. Don't just print the numbers out, use a format string like ' 1-hat = %g Amps ' with your fprintf function, etc. Your text file will consist of only two lines iii) Use your estimates, 1 and , with the given diode model and the data given for v to plot the currenti (on the vertical axis) with v on the horizontal axis using the plot function along with the given data from the file. Your plot command will look something like figure; plot (v-data, i-data,'',V, data, i-hat,'-') Also on a separate plot (be sure and use the figure; command), plot the same data using the semilogy function On each plot, indicate which curve goes with which variable using the legend command. Perhaps something like: legend ( ' | { data) ' , ' { hat) ' ) Do not enter any numbers in by hand. To get the size of the data arrays, etc., use the size function Print your script file, any function files, the output file diode_param estimates.txt and plots to turn in You are not required to create any functions, but if you do be sure and submit a printout of them as well Remember, I should be able to type in the scripts and functions you submit and be able to produce your results using only my installation of Matlab Note that the parameter, 1, is typically a very small number, ie., 1010I

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!