precxx
schläft auf dem Boardsofa
Sers...
ich muss das Lennard-Jones-Potential als MatLab-Funktion schreiben, jedoch ist MatLab schon bissl her, also komm ich net wirklich weiter.
Die Funktion soll grafisch dargestellt werden, und zwar im Bereich von 1 bis 100.
Jedoch meckert MatLab immer, dass
??? Error using ==> /
Matrix dimensions must agree.
Error in ==> \potential.m
On line 9 ==> z=eval
Funktion lautet:
function potential
y = '(4*100) * ((80/x)^12 - (80/x)^6)'
x = 1 : 10 : 100
z=eval
plot(x,z)
return
Hat jemand ne Ahnung, wie ich der Funktion das beibringe?
ich muss das Lennard-Jones-Potential als MatLab-Funktion schreiben, jedoch ist MatLab schon bissl her, also komm ich net wirklich weiter.
Die Funktion soll grafisch dargestellt werden, und zwar im Bereich von 1 bis 100.
Jedoch meckert MatLab immer, dass
??? Error using ==> /
Matrix dimensions must agree.
Error in ==> \potential.m
On line 9 ==> z=eval
Funktion lautet:
function potential
y = '(4*100) * ((80/x)^12 - (80/x)^6)'
x = 1 : 10 : 100
z=eval
plot(x,z)
return
Hat jemand ne Ahnung, wie ich der Funktion das beibringe?