Why can't I use a format statement that has alphanumeric, numeric and integer variables?
Mostra commenti meno recenti
Here are two formats I want to use. They both come from FORTRAN format statements. The first is 6F7.0,2F3.0,2I3,I2,6A4, while the second is 5A4,A1,7F7.0. Since they are in fixed field lengths and represent a row matrix, why can't I use a format statement that has alphanumeric (char/string), numeric (floating point) and integer (non-floating point) variables?
fmt_num0=[repmat('%7f',1,6),repmat('%3f',1,2),repmat('%3d',1,2),'%2d',repmat('%24c',1,1)];
fmt_num3=[repmat('%21c',1,1),repmat('%7f',1,7)];
MATLAB gives me 'concatenated cell mismatch' or 'exceeded dimensions'.
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Operators and Elementary Operations in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!