フィルターのクリア

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 Center および File ExchangeLoops and Conditional Statements についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by