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

2 Ansichten (letzte 30 Tage)
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.

Akzeptierte Antwort

the cyclist
the cyclist am 30 Nov. 2019

Weitere Antworten (1)

Vuqar Samedov
Vuqar Samedov am 30 Nov. 2019
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 Kommentar
the cyclist
the cyclist am 30 Nov. 2019
Bearbeitet: the cyclist am 30 Nov. 2019
@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 ' ...
]

Melden Sie sich an, um zu kommentieren.

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by