Why does Matlab omit some entries? In this case, it omits the 0s, but it replaced other numbers with the asterisk before. Doesn't only happen with the adjoint function.

1 回表示 (過去 30 日間)
Alexander
Alexander 2024 年 9 月 9 日
回答済み: nick 2024 年 9 月 9 日

回答 (1 件)

nick
nick 2024 年 9 月 9 日
Hi Alexander,
I understand that you want to remove the asterisk that is displayed after any operation is performed on the given matrix A.
The output display format of the numeric variables is set to 'RATIONAL'. In this format, the values are approximated by the ratio of small integers within a tolerance of 1e-6*norm. Numbers with a large numerator or denominator are replaced by matrix. You can change the format from 'RATIONAL' to 'LONG' to view the number in decimal format by the help of following command :
format long
You can refer to the following documentation to learn more about different output display formats:
Hope this helps.

カテゴリ

Help Center および File ExchangeMathematics and Optimization についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by