clc clear all close all aa=xlsread('sy1.xls'); at=[{'日期:2005-6-30至2006-12-1'},{'开盘价'},{'成交量'},{'最高价'},{'最低价'},{'收盘价'}]; ys='brgmcyk'; pd=aa(1:330,:)'; [pn,minp,maxp]=premnmx(pd); pr=[pn(:,1:320);pn(:,2:321);pn(:,3:322);pn(:,4:323);pn(:,5:324)]; % px
function draw3D filename %% you should use this fuction in commandwindow as follows: draw3D "book xls" %read data %data xlsread filename ; %%if your matlab can"t open the "xls" you can copy your data from xls to a %%txt and