The Following are requirements for a MatLab Program. Open the specification shee
ID: 3773969 • Letter: T
Question
The Following are requirements for a MatLab Program. Open the specification sheet file for the SolarWorld brand solar electric module Scroll to the top of the 2^nd page and note the three models and associated data Write a script (*.m) file and load the following data into arrays: Model (use the char function for string elements) Voc Vmpp Isc Impp Efficiency Use a for/end loop to load the data into a structure array called SolarWorld Each field should be named like the arrays above Use fprintf to output the model and maximum power from the middle model (SW 345) Maximum power is calculated by multiplying Vmpp * Impp The printed line in the Command Window should look like: The max output power for (model) is (#) Watts This is the info referenced to in the first line.Explanation / Answer
model=['SW_340', 'SW_345', 'SW_350'];
for i=1:1:3
fprintf(' enter the model%S',model(i));
voc(i)=input(' enter the open circuit voltage voc:');
vmpp(i)=input(' enter the max power point voltage vmpp:');
isc(i)=input(' enter the short circuit current isc:');
impp(i)=input(' enter the mx power point current impp:');
m(i)=input(' enter the module efficiency m:');
end
% max power cal by vmpp * impp
max_power=vmpp(1)*impp(1);
fprintf('the max power for 2nd model%d',max_power);
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.