What is the meaning of "Trailing string must be 'omitan' or 'includenan' " on MATLAB. I run the programm below but this error message displays

4 views (last 30 days)
I have problem on Line 272
  2 Comments
Thomas TJOCK-MBAGA
Thomas TJOCK-MBAGA on 8 Feb 2022
That is the complete error message Error using max Trailing string input be 'omitan' or 'includenan'.
Error in multis_multil (Line 272) err = max (ans(c-cn(1:ix:N,:,:)), [ ], 'all');

Sign in to comment.

Accepted Answer

Stephen23
Stephen23 on 8 Feb 2022
Edited: Stephen23 on 8 Feb 2022
The 'all' option is not available in your version (R2016a). It was introduced in R2018b:
You can probably replace that line with the classic approach using a colon:
tmp = abs(c-cn(1:ix:N,:,:));
err = max(tmp(:));
  4 Comments
Thomas TJOCK-MBAGA
Thomas TJOCK-MBAGA on 9 Feb 2022
I solved the problem another way by directly putting the markers in the plot command and it works. Thank you very much for your contribution

Sign in to comment.

More Answers (0)

Products


Release

R2016a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!