Hi, I am new to MATLAB. This is the script i am working on:
FC = 360; d = hex2dec ('001C72'); p = hex2dec ('038E'); t = hex2dec ('0392'); A = (d*0.5*FC/2^18); B = (p*0.5*FC/2^15); C = (t*0.5*FC/2^15);
Then writing 'A' in the command window i recieve an output in degrees depending on what the input 'd' in the m file is. My problem is that the hex values of d, p and t will change and will not always equal the same. So is there any way that i can make the hex vales above a variable that i can somehow change without editing the m file everytime?