MatLab Display Arrays which contains Hex and Dec values

Status
Not open for further replies.

Vauxdvihl

Member level 5
Joined
Dec 31, 1999
Messages
94
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
611
Hello

i have found on web the following script to display arrays inb Matlab

%disp('test')
n=length(x);
%fprintf('The number of data points is %g \n',n)
%disp('_______________________________________')
%disp(' AA AB AC)
%disp('_______________________________________')
%for i=1:1:n
% fprintf(' | %g | %x | %x \n',x(i),y(i)',z(i)')
%end
%disp('_______________________________________')

x is an arrray with dec values
y and z are arrays with hex numbers

x is shown correctly in command window, but y and z are not shown as hex numbers in command window

Can somebody please help?

Thanks
BR
Vauxdvihl
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…