note 95183 added to function.fopen
| From: | cristian1603 at msn dot com | Date: | Thu, 17 Dec 2009 09:55:05 +0000 |
| Subject: | note 95183 added to function.fopen | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-164068@lists.php.net to get a copy of this message | ||
Hi everyone,
I have a problem with Matlab, I have to open several files (about 700, really these files are
images) with these names:
"Corrected0","Corrected1",...,"Corrected500"..., I would like to do a
loop because I have to work in the same way with all files, but I don´t know how..
fID= fopen('corrected0.float32');
matrix = zeros(1024,1024);
for i = 1:1024
matrix(i,:)=fread(fID, 1024, 'float32');
end
HOw can I do to changing the nummber?
'corrected0.float32'
'corrected1.float32'
'corrected2.float32'
...
'corrected500.float32'
Thank you
----
Server IP: 69.147.83.197
Probable Submitter: 134.130.224.161
----
Manual Page -- http://www.php.net/manual/en/function.fopen.php
Edit -- https://master.php.net/note/edit/95183
Del: integrated -- https://master.php.net/note/delete/95183/integrated
Del: useless -- https://master.php.net/note/delete/95183/useless
Del: bad code -- https://master.php.net/note/delete/95183/bad+code
Del: spam -- https://master.php.net/note/delete/95183/spam
Del: non-english -- https://master.php.net/note/delete/95183/non-english
Del: in docs -- https://master.php.net/note/delete/95183/in+docs
Del: other reasons-- https://master.php.net/note/delete/95183
Reject -- https://master.php.net/note/reject/95183
Search -- https://master.php.net/manage/user-notes.php