Thành viên:Phạm Thạch Thảo/Note: Matlab notes

Từ VLOS
Bước tới: chuyển hướng, tìm kiếm

Log plot[sửa]

loglog()

semilogx()

semilogy() (just a guess!)

Subfigures[sửa]

Inset:

f1=figure;
loglog(x1,y1)
xlabel(''X Label of outer plot');
box('on');
hold on;
loglog(x2,y2);
axes('pos',[0.38 0.27 0.5 0.45]);
loglog(x3,y3);
xlabel(''X Label of inset');
box('on');
Tight side-by-side:
f1=figure;
axes('position',[0.15,0.15,0.35,0.80]);
loglog(x1,y1)
ylabel(''Y Label on the Left side!');
box('on');
hold on;
loglog(x2,y2);
axes('position',[0.55,0.15,0.35,0.80]);
loglog(x3,y3);
set(gca,'YAxisLocation', 'Right');
ylabel(''Y Label on the Right side!');
box('on');
hold on;
loglog(x4,y4);

Side-by-Side:

f1=figure;
subplot(1,2,1);
loglog(x1,y1)
subplot(1,2,2);
loglog(x2,y2)

From (http://udi.posterous.com/matlab-inset-and-side-by-side-figures)

Stop a program[sửa]

EXIT or QUIT to get rid of all matlab things.

DELAY() to pause program (highly not recommended).

Stop in the middle of the script: just put a wrong command (whatever) there (:D)!