Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

High-Low-Close Chart

Load the data and set up matrix dimensions. load and size are standard MATLAB® functions.

load ibm.dat;
[ro, co] = size(ibm);

Open a figure window for the chart. Use the Financial Toolbox™ highlow function to plot high, low, and close prices for the last 50 trading days in the data file. Add labels and title, and set axes with standard MATLAB functions. Use the Financial Toolbox dateaxis function to provide dates for the x-axis ticks.

figure;
highlow(ibm(ro-50:ro,2),ibm(ro-50:ro,3),ibm(ro-50:ro,4),[],'b');     
xlabel('');
ylabel('Price ($)');
title('International Business Machines, 941231 - 950219');
axis([0 50 -inf inf]);
dateaxis('x',6,'31-Dec-1994')

See Also

| | | | | | | | | | | | | | | | | | | | | | | | | |

Related Topics

Was this topic helpful?