Skip to content

Instantly share code, notes, and snippets.



Last active Dec 14, 2015
What would you like to do?
Calculator of Standard EIA Decade Resistor Values Table
%Standard EIA Decade Resistor Values Table
clear all;
clear ans;
d=input('What decade are you trying to obtain ?');%enter de multi factor 1,10,100,1000
i=input('Enter the finite number !')%,1,2,3,4,...n-1
n=input('Enter the tolerance');%3,6,12,24,48,96,192
for m=1:i
disp(roundn(r,-2));%we use roundn() in order to reduce decimal (round method)

This comment has been minimized.

Copy link
Owner Author

@c1b3rh4ck c1b3rh4ck commented Feb 25, 2013

you can send all the data to a file using fopen('namefile.txt','W');

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.