How to load a excel file and 2D plot command!

Hej there! I want to load a excel file data at matlab and plot that 2d! what will be the code for that!

回答 (1 件)

Youssef  Khmou
Youssef Khmou 2013 年 3 月 3 日

0 投票

try :
doc xlsread
Suppose you have a excel file 'Class.xlsx' with the following data :
1 4
1,5 1
In MATH command you can try :
>>num=xlsread('Class.xlsx');
>>plot(num(:,1),num(:,2));

タグ

質問済み:

2013 年 3 月 3 日

Community Treasure Hunt

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

Start Hunting!

Translated by