hw22-Word References Mailings Review View Foxit PDF Tell me what you neglect to do… bCr AaBboct AaB AaBb AaBbCcDc AaBbCcDc A·ツ-A–_ -ts.e. . L1 .11Normal!!No Spac Heading 1 Heading 2 Title Subtit Styles Paragraph 3. Write a MATLAB business to alter the 11-bit propounder concern of a inchoate subject-matter reckon to its base-10 truthfulness. The input to the business should be a [1 1 1] arrange of zeros and ones representing the base-2 propounder. Then, truth your script to discover the base-10 equivalents coercion the subjoined propounders. Embody a printed observation of your script with your homework. (hint: be permanent to embody the bias!) (suggest 2: this labor can be completed in hither than 10 lines). a. Example: 00101101110 657 b. 10001011011 c. 00101111010 d. 11110011000 DOLL
Both wavers are lenghty to do at once. Please support the other waver seperately. I am providing you the reresolution coercion waver 3. Let me distinguish if you feel any waver.
b=[1 1 1 1 0 0 1 1 0 0 0];
business decimal= mybin2real(binarystring)
decimal = 0;
coercion i = 1 : extension(binarystring)
decimal = decimal + (binarystring(i)) * 2^(length(binarystring) – i);
Code and output: