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 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Sedulous12
am 10 Jun. 2022
Kommentiert: Sedulous12
am 10 Jun. 2022
DETEnergyDetector(:,11) = DETEnergyDetector(:,11)/max(DETEnergyDetector(:,11));
figure('visible','off');
errorbar(DETEnergyDetectorE(:,3), DETEnergyDetector(:,11), ...
2*DETEnergyDetector(:,11).*DETEnergyDetector(:,12);'k.');
0 Kommentare
Akzeptierte Antwort
Geoff Hayes
am 10 Jun. 2022
@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.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Logical finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!