creating subplots and reading from xls or txt

조회 수: 2 (최근 30일)
lala
lala 2013년 2월 27일
I have a text file that has bunch on x and y coordinates. 10 columns vs. 5 rows.
i want to create subpots of col1-col2, col1-col3, col1-col4, and so on till col1-col10.
some background: At first, i wrote separate matlab programs for each plot but now i see how useless that is and i want to combine them all to one program and have subplots instead. Also, to have my program read the data from an excel doc.
Here is part of my program (for now, just reading the doc and creating plot) which of course doesnt work properly.
fid = fopen('AngleVsDist.txt');
input = fscanf(fid, '%25e',[3, inf]);
format bank
angle = input(:, 1);
p1 = input(:, 2);
plot (angle, p1, '*')
Ill appreciate help. Thanks, LaLa~

답변 (0개)

카테고리

Help CenterFile Exchange에서 Polar Plots에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by