nba=xlsread('nba.xls')
attendance = nba(:,1);
price = nba(:,2);
bar3 (attendance, price)
bar3 (attendance,1.0)
bar3 (attendance,'y')
title('NBA Attendance vs. Ticket Price')
xlabel('Ticket Price $')
ylabel('Attendance')
grid on
Hi, im actually just started using Matlab. What im trying to do is i have two columns with digit andn im trying to make a calculation on every column how do I do that ? ( Example column 1 : 100 , column 2 : 50 ) How do I multiple it and get the answer on a new bar chart or somewhere? ( I have load of column )

1 comentario

Walter Roberson
Walter Roberson el 21 de Nov. de 2017
What size of output are you expecting when you multiply 100 columns by 49 columns ?

Iniciar sesión para comentar.

Respuestas (1)

Chong How Hung
Chong How Hung el 22 de Nov. de 2017
Editada: Walter Roberson el 22 de Nov. de 2017

0 votos

Sorry thats a bit confused, what im doing is. I have got a data set with 2 columns
column 1 : 100 100 100 100 100 100 100
column 2 : 200 200 200 200 200 200 200
i want column 1 total amount and column 2 total amount and multiple it in the end;
example : column 1 = 700 total, column 2 = 1400 total
and last step i wanted to do is multiple the total amount
700*1400= 980,000.
But how am I doing it on Matlab ?

Categorías

Más información sobre Financial Toolbox en Centro de ayuda y File Exchange.

Productos

Etiquetas

Preguntada:

el 21 de Nov. de 2017

Editada:

el 22 de Nov. de 2017

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by