Please I have a code but it keep saying Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.
조회 수: 2 (최근 30일)
이전 댓글 표시
DETEnergyDetector(:,11) = DETEnergyDetector(:,11)/max(DETEnergyDetector(:,11));
figure('visible','off');
errorbar(DETEnergyDetectorE(:,3), DETEnergyDetector(:,11), ...
2*DETEnergyDetector(:,11).*DETEnergyDetector(:,12);'k.');
댓글 수: 0
채택된 답변
Geoff Hayes
2022년 6월 10일
@Sedulous12 - there is a semi-colon instead of (perphaps) a comma:
2*DETEnergyDetector(:,11).*DETEnergyDetector(:,12);'k.'); % <--- semi-colon before 'k.'
Try changing this line to
errorbar(DETEnergyDetectorE(:,3), DETEnergyDetector(:,11), ...
2*DETEnergyDetector(:,11).*DETEnergyDetector(:,12), 'k.');
as that might remove the error.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!