blob: d7d390e9a7fbff88b9a54bd272d3698ef0b571b2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
// Exa 8.3
format('v',9)
clc;
clear;
close;
// Given data
str= '256';// given number in octal to convert into hexadecimal
str_in_dec= oct2dec(str);// decimal equivalent
str_in_hex= dec2hex(str_in_dec);// hexadecimal equivalent
disp(str_in_hex,"The hexadecimal equivalent of 256 is : ")
|