Sort Matlab table, monthly and seasonally. plot mean and trend seasonal map
    조회 수: 6 (최근 30일)
  
       이전 댓글 표시
    
I am processing ocean and climate data (1982-2022). Here, I have table which having heatwaves events details. Now, I want to sort the data month wise and also seasonal wise (summer:October- February, and winter:March-September), and then i wanted to plot mean seasonal and trend.
Sample file is attached. length of original file may vary in size.
Thanks in addvance.
댓글 수: 0
채택된 답변
  Cris LaPierre
    
      
 2023년 5월 23일
        Create a column of month names using month. Convert them to categorical values and use mergecats to combine these into 2 categories - Summer and Winter.
Share what you have tried so we can help more.
댓글 수: 4
  Cris LaPierre
    
      
 2023년 5월 26일
				
      편집: Cris LaPierre
    
      
 2023년 5월 26일
  
			I created a simple example to show you how to use the functions I mentioned in my original post. You already have the date info in your data, so you don't need to create D. However, you do need to convert your data into datetime variables. Try this:
load table_1.mat
MHW3.mhw_onset = datetime(MHW3.mhw_onset,"ConvertFrom","yyyymmdd");
MHW3.mhw_end = datetime(MHW3.mhw_end,"ConvertFrom","yyyymmdd")
추가 답변 (0개)
참고 항목
카테고리
				Help Center 및 File Exchange에서 Oceanography and Hydrology에 대해 자세히 알아보기
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

