Labeling Excel axis using Matlab
조회 수: 7 (최근 30일)
이전 댓글 표시
I am trying to create plots in Excel 2007 using the actxserver. I have seen examples on that say the way to label axes is to do:
eC.Chart.axes(1).HasTitle = 1;
eC.Chart.axes(1).AxisTitle.Text = 'Radians';
eC.Chart.axes(2).HasTitle = 1;
eC.Chart.axes(2).AxisTitle.Text = 'Value';
I have tried this an keep getting the error: "Error using axes Too many output arguments." I cannot figure out how to solve this problem as I am new to using Matlab this way. I have got every other part of creating a plot working. Does anyone know what might be the problem?
댓글 수: 1
Marc
2013년 8월 24일
Just because I am curious, why would you want to plot something in excel from Matlab? I mean, you have Matlab.
답변 (1개)
richardchoi
2013년 11월 21일
I don't really know what I'm talking about, so the way I explain might be technically wrong, but stay with me here.
what is eC? Is it the handle for your ChartObjects? If so, you can try
eC.Chart.Axes(1).HasTitle = 1;
Capitalize the A in Axes. If that's not the case, you probably already have the Chart handle in eC, in which case you'd use
eC.Axes(1).HasTitle = 1;
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Spreadsheets에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!