My MATLAB Tricks and Functions

inputParser

(run across at: GPstuff-4.7/gp/gp_pred.m)

linkprop

Hatchfill

Hatchfill2

需要掌握的一些 MATLAB 函数

/lang/assert

/strfun/string

Bugs

websave

websave will convert the space in an query to +, not %20, which could cause troubles.

1
2
3
4
5
6
url = 'https://www.space-track.org/ajaxauth/login';
query = ['https://www.space-track.org/basicspacedata/',...
'query/class/tle/',...
'EPOCH/',start,'--',stop,'/NORAD_CAT_ID/',norad_id,'/',...
'orderby/TLE_LINE1 ASC/format/tle'];
websave(filename, url, 'identity',username, 'password',password, 'query',query, options);

After a log digging, the problems exists at
matlab.net.internal.urlencode(str, noEncodeChars, true);
This true is hard-coded and will set to “encode space as + instead of %20”, according to the comments in the function.

There is not easy solution to this, as of 2019/08/01.