回答済み Read full answer from serial device
You are right, readline reads exactly to the first terminator, so it is handling the terminator correctly. Try "read" instead, e...
回答済み Reading a binary file in parts
Here some code:
% ExampleFread.m
fid = fopen('ABCDE.txt');
in = fread(fid,4); % read 4 byte
char(in)
in = fread(fid,4...
回答済み Writing functions f(x,y)
The solutions above are very good and should be used to avoid loops. But anyway I post my little script here, because I think it...
回答済み Selecting a rain event from data series
I think this should work now:
clear;
load rain2.txt; rain = rain2; % Only to reuse the code above
NoOfDry = 1;
rHmm = rain(...
約3年 前 | 1
| 採用済み
回答済み Selecting a rain event from data series
I have to contradict, strfind is perfect if you want to avoid loops. Have a look at my rapid programmed script:
load rain.txt
...
回答済み how to find the most used letters in a text?
Try "help fread" and have a look on the examples. But anyway, this might help:
fid = fopen("PutYourTextInHere.txt", 'r');
c ...