Control Chart from SQL query results

Hello, I ran a query to get a column of durations from a MS SQL database, and am trying to construct a control chart. What is the best way to do this? I tried to follow the example given, but there seems to be a problem because I only have one column.
Thank you

 採用された回答

Tom Lane
Tom Lane 2011 年 10 月 10 日

0 投票

If the column is a series of measurements taken over time, with no particular grouping to them, then there are charts like the "I" (individuals) chart that may be appropriate:
load spectra
controlchart(octane,'charttype','i')
Otherwise, if there are groups, you could specify a second argument that represents the grouping. For example, if each set of five consecutive measurements is taken on the same day and you want to look for day-to-day differences, then set up a vector "day" that is 1 for the first five measurements, 2 for the next five, and so on.

2 件のコメント

Todd
Todd 2011 年 10 月 11 日
Tom,
Thank you, that was what I needed.
Ziad Ramadan
Ziad Ramadan 2017 年 10 月 1 日
how I can apply old control limit on new data

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeDynamic System Models についてさらに検索

タグ

質問済み:

2011 年 10 月 8 日

コメント済み:

2017 年 10 月 1 日

Community Treasure Hunt

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

Start Hunting!

Translated by