Question: Assignment 1 Digital Circuits Laboratory 0 1 2 4 ? 2 0 2 4 I. Converting To Decimal Develop a Matlab function with the following
Assignment
Digital Circuits Laboratory
I. Converting To Decimal
Develop a Matlab function with the following signature:
function ConvertedConvertToDecimal Number base
The above function takes a Number in a given base and converts the number to decimal. The given Number is a string of digits. To test the developed function run the following lines of code and make sure that you see the expected output:
ConvertToDecimal
ConvertToDecimal
ConvertToDecimal
ConvertToDecimal ABDECF
ConvertToDecimal AA
ConvertToDecimal
The expected output is as follows:
ans
ans
ans
ans
ans
ans
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
