필터 지우기
필터 지우기

load("stormData"); summaryRegionCosts = groupsummary(stormData, 'Region',{​"min","max​","median"​,"mean"} , 'Total_Cost'); stormDataPos = stormData.Total_Cost> 0 ; summaryRegion

조회 수: 5 (최근 30일)
What is wrong with my code
l
load("stormData");
summaryRegionCosts = groupsummary(stormData, 'Region',{'min','median','mean','max'}, 'Total_Cost')
stormDataPos = stormData(stormData.Total_Cost> 0, :)
Total = stormData.Total_Cost>0;
summaryRegionPosCosts = groupsummary(stormData, 'Region',{'min','median','mean','max'},'Total')

채택된 답변

Teklebirhan Abraha
Teklebirhan Abraha 2022년 9월 10일
load("stormData"); summaryRegionCosts = groupsummary(stormData, 'Region',{'min','median','mean','max'}, 'Total_Cost') stormDataPos = stormData(stormData.Total_Cost> 0, :) summaryRegionPosCosts = groupsummary(stormDataPos, 'Region',{'min','median','mean','max'},'Total_Cost') This is the correct answer.

추가 답변 (1개)

Stephen Tete
Stephen Tete 2022년 9월 8일
편집: Stephen Tete 2022년 9월 8일
I’m not sure what your error is but I suggest you load with “readtable”
Else post your error let’s see
  댓글 수: 2
Teklebirhan Abraha
Teklebirhan Abraha 2022년 9월 10일
편집: Teklebirhan Abraha 2022년 9월 10일
I solved it. The problem was on the last line. Thanks for the comment.
Stephen Tete
Stephen Tete 2022년 9월 10일
Great, kindly post your solution here as others may find it helpful. Thank you

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

카테고리

Help CenterFile Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by