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

To resolve issues starting MATLAB on Mac OS X 10.10 (Yosemite) visit: http://www.mathworks.com/matlabcentral/answers/159016

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)

0 Comments

O

Products

No products are associated with this question.

1 Answer

Answer by Image Analyst on 14 Nov 2013
Accepted answer

Hint:

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

Look up fprintf() in the help for examples.

0 Comments

Image Analyst

Contact us