Error using ^ Incorrect dimensions for raising a matrix to a power. Check that the matrix is square and the power is a scalar. To perform elementwise matrix powers, use '.^'. Error in Untitled (line 23) D(i) = sqrt ((a1(i)-a9)^2 +(b1(i)-b9)^2 + (c

1 Ansicht (letzte 30 Tage)
Hi everyone, can you help me overcome this problem?
  1 Kommentar
Stephen23
Stephen23 am 11 Jul. 2019
Bearbeitet: Stephen23 am 11 Jul. 2019
Notes about your code:

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Stephen23
Stephen23 am 11 Jul. 2019
Bearbeitet: Stephen23 am 11 Jul. 2019
Using my trusty magical crystal ball:
a1 = 550;
b1 = 355;
c1 = 0.5676;
d1 = 1.3090;
a9 = Data(:,1);
b9 = Data(:,2);
c9 = Data(:,3);
d9 = Data(:,4);
D = sqrt((a1-a9).^2 + (b1-b9).^2 + (c1-c9).^2 + (d1-d9).^2)

Kategorien

Mehr zu Particle & Nuclear Physics finden Sie in Help Center und File Exchange

Tags

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by