immutable outputs from matlab functions

Hi!
Can I define Matlab function outputs as immutable (similar to Python) like user defined class properties can have set access as immutable?
Thanks & Regards,
Mubashir

回答 (1 件)

Walter Roberson
Walter Roberson 2023 年 6 月 13 日

0 投票

No. The closest you can get is to create a class that does not have a public set method for the properties.

カテゴリ

製品

リリース

R2023a

タグ

質問済み:

2023 年 6 月 13 日

回答済み:

2023 年 6 月 13 日

Community Treasure Hunt

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

Start Hunting!

Translated by