我有一个包含 4 列(半径、x、y、z)的文件,其中每行都包含球体的坐标及其半径。你能帮我在 gnuplot 中绘制这些球体吗?(如果在 gnuplot 中不可能,你能推荐另一个绘图工具吗?)
我有两个文件:batch.bat和vbscript.vbs..bat文件包含一个循环,我需要调用.vbs,并传递给它2个参数..vbs文件包含一个带有2个参数的函数(我传递给.vbs文件的参数).我需要在.bat文件中访问.vbs返回的函数值.
有人可以帮帮我吗?
我不是专家所以请原谅我糟糕的语法.我正在调用.bat文件.文件看起来应该是这样的
batch.bat:
loop start
' calling the vbs file
cscript vbscript.vbs arg1 arg2 ( here I suppose something has to be add to get val from vbs)
' using value returned by .vbs function
loop end
Run Code Online (Sandbox Code Playgroud)
vbscript.vbs:
function myfunction(arg1,arg2)
dim value
' do some calculation
myfunction= value
end function
dim value_to_return_to_batch
' now calling the function
value_to_return_to_batch=myfunction(arg1,arg2)
'
' here something has to be add to send value_to_return_to_batch to batch
'
Run Code Online (Sandbox Code Playgroud)