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 Kommentar

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

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Chong How Hung
Chong How Hung am 22 Nov. 2017
Bearbeitet: Walter Roberson am 22 Nov. 2017

0 Stimmen

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 ?

Kategorien

Mehr zu Financial Toolbox finden Sie in Hilfe-Center und File Exchange

Produkte

Gefragt:

am 21 Nov. 2017

Bearbeitet:

am 22 Nov. 2017

Community Treasure Hunt

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

Start Hunting!

Translated by