📄 socialpotentialfields.m
字号:
% This file draws the curve of social potential fields.
% (2007/04/02)
clear;
% Paper parameter setting
% c_1=-20;
% c_2=15;
% lou_1=3;
% lou_2=0.8;
c_1=1250;
c_2=250;
lou_1=2.0;
lou_2=1.0;
r=0.8:0.01:20;
f=[];
for i=1:length(r)
f=[f -c_1/r(i)^lou_1+c_2/r(i)^lou_2];
end
% draw the curve
plot(r,f)
%%%%%%%%%%%%%%%%
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -