ExB drift velocity code equation
6 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hello, I would like to know if there is a better or more elegant way to code this equation and how I could get a better result? Not really sure. Any help will be appreciated. Thanks.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1494777/image.png)
E = 0.1;
B = 20;
E = [0 0.1 0];
B = [0 0 20];
VE = cross(E,B)./B.^2
0 Kommentare
Antworten (1)
John D'Errico
am 27 Sep. 2023
I might guess that what you really want is to divide by the square of the norm of B. NOT by the elements of B squared.
E = 0.1;
B = 20;
E = [0 0.1 0];
B = [0 0 20];
VE = cross(E,B)./norm(B)^2
0 Kommentare
Siehe auch
Kategorien
Mehr zu Introduction to Installation and Licensing 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!