MATLAB Answers

O

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

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


Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply today