Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

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.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top