I am using GMT6.6.0dev within MATLAB2023a on Windows10. So far, everything is fine except the colorbar module. For example,
My Bash code is ok,
gmt begin test png
gmt grdimage @earth_relief_01m -JM15c -R118/125/20/26 -Baf -BWSen -I+d
gmt colorbar -DJMR+w10c+o1.5c/0c+ml -Bxa1000f -By+l"m"
gmt end show
my MATLAB code is wrong,
gmt('begin test png')
gmt('grdimage @earth_relief_01m -JM15c -R118/125/20/26 -Baf -BWSen -I+d');
gmt('colorbar -DJMR+w10c+o1.5c/0c+ml -Bxa1000f -By+l"m"');
gmt('end show');
gmt('destroy');
Error message,
错误使用 gmtmex
GMT: Attempting to address a prhs entry that does not exist
出错 gmt (第 33 行)
[varargout{1:nargout}] = gmtmex (cmd, varargin{:});
出错 gmt_test (第 3 行)
gmt('colorbar -DJMR+w10c+o1.5c/0c+ml -Bxa1000f -By+l"m"');
Could anyone help me?