我遇到了一个问题。我必须将 MATLAB 与 linux 一起使用。我需要将数据从 MATLAB 解析到 Linux,反之亦然。
例如
这一切都写在
basic.sh
this basic.sh has to be opened in MATLAB
s=3 # is defined is MATLAB
##########################
for (( p=1 ; p<5; p++ )) # from here starts the loop in Linux
do # is a command from Linux
echo "$p" # is a command from Linux
add= $p+s # should calulate in linux , is a command from Linux
add=add/5 # should do in MATLAB
done
#########################
add # should OUTPUT the value of add as there is no semicolumn in MATLAB
请为这样一个小例子建议我一种可能的方法,其余的我将自己扩展它。
最好的祝福