How can I call half of text by using "textread" ? (1*4096 matrix to 1*2048 matrix)
2 views (last 30 days)
Star Strider on 16 Oct 2021
I have never used textread, however that could be described in the format string, for example —
formatStr = [repmat('%f',1,2048) repmat('%*f',1,2048)];
The addition of the ‘*’ suppresses those fields from being read (assuming they are all numeric). See the doucmentation on format for an extended discussion.