MATLAB Answers


generating tables of four colomns

Asked by O
on 14 Nov 2013
Latest activity Answered by Image Analyst
on 14 Nov 2013

Generate a table of conversions of four columns. First column contains dollars, second contains equivalent number of euros, third contains equivalent number of pounds and fourth contains equivalent number of yens. Print 25 lines in the table. Table should include a title, column labels and formatted output (use disp and fprintf commands)



No products are associated with this question.

1 Answer

Answer by Image Analyst
on 14 Nov 2013
 Accepted answer


fprintf('Dollars   Euros    Pounds   Yen\n')
for k = 1 : 25

Look up fprintf() in the help for examples.


Join the 15-year community celebration.

Play games and win prizes!

Learn more
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!