hi, i have a string that i would like all its values to be stored in a matrix but when i use square brackets([ ]) to store it as a matrix it still gives me the answer as a string. How do i add those values to a matrix
this is the string:
A =
"0.00045" "0.00056" "0.0007" "0.00086"
"0.00067" "0.0008" "0.00094" "0.00109"
"0.00092" "0.00106" "0.00119" "0.00132"
"0.00117" "0.00133" "0.00147" "0.00159"
"0.00144" "0.00162" "0.00177" "0.00189"
"0.00174" "0.00193" "0.00208" "0.0022"
"0.00235" "0.00253" "0.00263" "0.00266"
"0.00311" "0.00331" "0.00343" "0.0035"
and i would like to write it as a matrix instead of a string, Please help.

 採用された回答

KSSV
KSSV 2020 年 5 月 27 日

0 投票

Read about str2double.

1 件のコメント

WILLBES BANDA
WILLBES BANDA 2020 年 5 月 27 日
Thank you honourable

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeCharacters and Strings についてさらに検索

製品

質問済み:

2020 年 5 月 27 日

コメント済み:

2020 年 5 月 27 日

Community Treasure Hunt

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

Start Hunting!

Translated by