MATLAB Answers


Add two excel data togather

Asked by Exton
on 30 Aug 2012

now i had two excel data inside my matlab and i would like to ask how to add on the two data together and square it???? my excel data name count and counts... need some coding guard line to help to done my FYP


Matt Tearle
on 30 Aug 2012

Can you please show a simple example of what the data looks like and what result you'd like.

on 30 Aug 2012

there are 2 excel file with all my value (only in 1 column ) i want to add those value and square it!278


No products are associated with this question.

1 Answer

Answer by Matt Tearle
on 4 Sep 2012
Edited by Matt Tearle
on 4 Sep 2012
 Accepted answer

count = xlsread('file1.xls');
counts = xlsread('file2.xls');
squaredsum = (count + counts).^2;

(although from your screen capture, there don't seem to be any Excel files.)

  1 Comment

on 6 Sep 2012

get it thx

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!