NISOx-BDI / SwE-toolbox

SwE toolbox
GNU General Public License v2.0
16 stars 7 forks source link

Replace the function 'replace' by the function 'strrep' as it is compatible with older Matlab versions #172

Closed BryanGuillaume closed 4 years ago

BryanGuillaume commented 4 years ago

The goal of this PR is to replace the relatively recent Matlab function replace (introduced in R2016b) by the much older Matlab function strrep (introduced before R2006a) in order to allow the use of the toolbox with old Matlab versions.

@nicholst, this PR is straightforward and I think we can merge it straightaway.

nicholst commented 4 years ago

Yes! Good call... small changes that can help with backwards compatibility are always appreciated by users.

Merge away!