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

2 visualizzazioni (ultimi 30 giorni)
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.

Risposta accettata

the cyclist
the cyclist il 30 Nov 2019

Più risposte (1)

Vuqar Samedov
Vuqar Samedov il 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 Commento
the cyclist
the cyclist il 30 Nov 2019
Modificato: the cyclist il 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 ' ...
]

Accedi per commentare.

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by