필터 지우기
필터 지우기

How to overwrite average values to same class (or label)?

조회 수: 1 (최근 30일)
HCLEE
HCLEE 2022년 11월 8일
댓글: HCLEE 2022년 11월 8일
Hi, I'm a beginner.
I want put the average values to the same class as shown in the picture.
Can I ask which commend would be helpful to me?

채택된 답변

Marcel
Marcel 2022년 11월 8일
편집: Marcel 2022년 11월 8일
Not sure what you are exactly trying to do, but you can programmatically insert data into e.g. a UITable using this
% Left side
% First class: app.UITable.Data(1,1)
% Second class: app.UITable.Data(1,2)
% Mass: app.UITable.Data(1,3)
% (if i dont make a mistake. if so just swap the numbers)
app.UITable.Data(1,1) = cellstr("Im a awesome value");
  댓글 수: 1
HCLEE
HCLEE 2022년 11월 8일
I want put the averaged mass and concentration values to the same name of class of the raw data.
The raw excel file was loaded as table,
table = readtable("table.xlsx", opts, "UseExcel", false);
And the values in same classes were averaged as below,
table_avg = varfun(@mean,table,'GroupingVariable',{'1st_Class' '2st_Class'},'InputVariable',{'mass_kg','conc.'});
But I cannot find the way to put the averaged values to the raw data matching with the class name.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Spreadsheets에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by