hi all, I have three column in excel I want to plot them by using matlab, how could I plot them in MATLAB ?? please help..

 채택된 답변

Image Analyst
Image Analyst 2015년 6월 23일

0 개 추천

Try this:
allData = xlsread(filename);
column1 = allData(:, 1); % Extract column #1
column2 = allData(:, 2); % Extract column #2
column3 = allData(:, 3); % Extract column #3
plot(column1, 'rd-', 'LineWidth', 2, 'MarkerSize', 8);
hold on;
plot(column2, 'go-', 'LineWidth', 2, 'MarkerSize', 8);
plot(column3, 'b*-', 'LineWidth', 2, 'MarkerSize', 8);

추가 답변 (0개)

카테고리

태그

질문:

2015년 6월 23일

댓글:

2015년 6월 24일

Community Treasure Hunt

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

Start Hunting!

Translated by