Dear friends, the long matlab command that I have written is error. I want to be spelled the same way but without error.

2 ビュー (過去 30 日間)
formatSpec = '%f%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%f%f%... %q%q%q%f%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%f%q%q%f%q%q%f%q%q%q%q%q%q%q%q%q%q%q%q%...
q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%C...
%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%f%q%q%q%q%q%q%q%q%q%q%f%q%q%q%q%q%q%q%q%q%q%q%q%q%q%[^\n\r]';
formatSpec = '%f%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%f%f%...
Error: Character vector is not terminated properly.

採用された回答

the cyclist
the cyclist 2019 年 11 月 30 日

その他の回答 (1 件)

Vuqar Samedov
Vuqar Samedov 2019 年 11 月 30 日
My friend the cyclist . Please help me . It is very important to me.
I need to write a long form, but I could not. not taken as in the picture. Matlab gives error.
My Friend I want to write this command in a long form of matlab but don't make a error.
Please help me very much. It is very important to me.
matlab.png
It has 160 characters (%q).
It has 9 characters (%f).
It has 1 characters (%C).
formatSpec = '%f%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%f%f%q%q%q%f%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%f%q%q%f%q%q%f%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%C%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%q%f%q%q%q%q%q%q%q%q%q%q%f%q%q%q%q%q%q%q%q%q%q%q%q%q%q%[^\n\r]';
PLEASE HELP ME
  1 件のコメント
the cyclist
the cyclist 2019 年 11 月 30 日
編集済み: the cyclist 2019 年 11 月 30 日
@dpb gave a solution in your other question. Stephen Cobeldick mentioned this above. You seem to be ignoring the people trying to help you.
Here is his solution again.
fmt=['%f' repmat('%q',1,45) repmat('%f',1,2) repmat('%q',1,3) repmat('%f',1,2) ...
...
'%[^\n\r]'];
The main thing you need to understand is to not let the group of characters going across multiple lines. Instead, you need something like
fmt = ['char_group_1 ' ...
'char_group_2 ' ...
'char_group_3 ' ...
]

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

カテゴリ

Help Center および File ExchangeWhos についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by