How to write a "Big O notation" coding using MATLAB

Hi I would like to write a big O notation code for MATLAB program (medical image segmentation) to analyse time complexity.can anyone give me some example or solution.

回答(1 个)

Is this what you mean:
axes;
text(0.5,0.5,'$\mathcal{O}(n\log{}n)$','Interpreter','latex')

Community Treasure Hunt

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

Start Hunting!

Translated by