newName=input('Enter name of new component: ','s');
Name{length(Name)+1}=newName;
newCur=input('Enter Current values corresponding to the 5 voltages for the new component in mA:');
CurData=[CurData;newCur];
MaxCur=max(max(CurData(2:end,:)));
[R,C]=find(CurData(2:end,:)==MaxCur);
fprintf('Maximum Current = %d mA\n',MaxCur)
fprintf('At voltage = %.3f nV\n',CurData(1,C)*10^9)
fprintf('\t For %s\n',Name{choice})
2 Comments
Direct link to this comment
https://in.mathworks.com/matlabcentral/answers/556294-how-to-format-output-to-exponential-notation#comment_916942
Direct link to this comment
https://in.mathworks.com/matlabcentral/answers/556294-how-to-format-output-to-exponential-notation#comment_916942
Direct link to this comment
https://in.mathworks.com/matlabcentral/answers/556294-how-to-format-output-to-exponential-notation#comment_916963
Direct link to this comment
https://in.mathworks.com/matlabcentral/answers/556294-how-to-format-output-to-exponential-notation#comment_916963
Sign in to comment.