如何用 MATLAB 绘制股票 dally 条形图?

how to plot stock dally bar chart with MATLAB?

我试图用 MATLAB 绘制像这样的条形图,但我很困惑。

感谢任何帮助。

P.S。 : 我尽力了

[Price time]=xlsread('one_year.xlsx');
formatIn='mm/dd/yyyy';
t=flipud(datenum(time,formatIn));
dates=linspace(t(1),t(end),13);
plot(t,flipud(Price))
%Set Ticks
labels = datestr(dates,3);
set(gca, 'XTick', dates);
set(gca, 'XTickLabel', labels);
Xlabels = linspace(min(Price),max(Price),6);
X = linspace(min(Price),max(Price),6);
set(gca, 'YTick', X);
set(gca, 'YTickLabel', Xlabels);
%Label Axes and Set Title
xlabel('Date')
ylabel('Price')
title('Price of Microsoft')

金融工具箱中的函数 highlow 创建了这样的图。