pgfplotstable: 열의 평균을 계산합니다.

pgfplotstable: 열의 평균을 계산합니다.
\documentclass{article}
\usepackage{pgfplots}
\usepackage{pgfplotstable}

\pgfplotstableset{
    create on use/mean/.style args={#1#2#3}{
        create col/expr={(\thisrowno{#1} + \thisrowno{#2} + \thisrowno{#3})/3}
    }
}

\begin{document}

\pgfplotstableread{
1  1    2    3
2  2    3    4
3  3    4    5
4  4    5    6
}\mydata

\begin{tikzpicture}
\begin{axis}[]     
\addplot[] table [x index=0, y=mean{1}{2}{3}] {\mydata};     
\end{axis}
\end{tikzpicture}

\end{document}

이 코드는 오류를 제공합니다죄송합니다. ...에서 '평균{1}{2}{3}' 열을 검색할 수 없습니다.

내가 원하는 것은 테이블의 세 열(주어진 인덱스 포함)의 평균을 계산하는 것입니다.

내가 어떻게 해?

관련 정보