Vector must be the same length error
    조회 수: 2 (최근 30일)
  
       이전 댓글 표시
    
here i was trying to plot graph but it showing me this error
 load('B0005.mat');
SoC=xlsread('E:\SoC.xlsx');
for i=87:9:100
    Type=B0005.cycle(i).type;
    if strcmp(Type,'charge')==1
         Volt=B0005.cycle(i).data.Volt; 
         plot(B0005.cycle(i).data.Volt, SoC);
         hold on;
    end
end
댓글 수: 0
채택된 답변
  madhan ravi
      
      
 2018년 10월 30일
        Sizes of B0005.cycle(i).data.Volt and SoC should be the same if you want to plot them if not make some change such that they are equal
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
				Help Center 및 File Exchange에서 Spline Postprocessing에 대해 자세히 알아보기
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!