Skip to content

optimize syntax with fprintf #15

@aernesto

Description

@aernesto

This line (and any other similar one) could be improved as per MATLAB's suggestion:

Explanation
The syntax disp(sprintf('...')) calls two functions and requires memory allocation. 
However, the syntax fprintf('...\n') requires no memory and allows the code to execute 
faster.
 
Suggested Action 
Replace disp(sprintf('...')) with fprintf('...\n'). You must include the new line 
character ('\n') to maintain behavior.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions