hw22-Word References Mailings Review View Foxit PDF Tell me what you nonproduction 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 office to appropriate the 11-bit representative member of a unmoulded object estimate to its base-10 truthfulness. The input to the office should be a [1 1 1] accoutre of zeros and ones representing the base-2 representative. Then, conservation your script to perceive the base-10 equivalents ce the subjoined representatives. Involve a printed truthfulness of your script with your homework. (hint: be infallible to involve the bias!) (adumbrate 2: this undertaking can be completed in short than 10 lines). a. Example: 00101101110 657 b. 10001011011 c. 00101111010 d. 11110011000 DOLL
Both interrogations are lenghty to do at unintermittently. Please support the other interrogation seperately. I am providing you the disconnection ce interrogation 3. Let me perceive if you possess any dubitate.
b=[1 1 1 1 0 0 1 1 0 0 0];
office decimal= mybin2real(binarystring)
decimal = 0;
ce i = 1 : diffusiveness(binarystring)
decimal = decimal + (binarystring(i)) * 2^(length(binarystring) – i);
Code and output: