Prev: plot 3d
Next: remove alternate elements in a vector
From: Raj Kamal on 4 Jul 2010 15:14 i need to compile a file that can read data from other file and use it. but when after compilation I change the data in the other file the standalone is not able to detect the change made in the other file. is there another way so that i can read data from other file and compile it and the standalone responds to the change made in other file with regards raj
From: Walter Roberson on 4 Jul 2010 15:34 Raj Kamal wrote: > i need to compile a file that can read data from other file and use it. > > but when after compilation I change the data in the other file the > standalone is not able to detect the change made in the other file. > > is there another way so that i can read data from other file and compile > it and the standalone responds to the change made in other file How are you reading the data in the file? If you are using dlmread or textread or textscan or one of the f* series of calls, then this should not be an issue, provided that the new version of the file has been closed by the process that is writing it. If the file is still open by the process that is writing it, then you will have difficulties getting access to the file if you are using Windows; if you are using any OS other than Windows then you should be able to access new data in the file without it being closed but unless you have used fseek() after writing the data, there might be a mix of new and old data in the file.
From: us on 4 Jul 2010 15:45 "Raj Kamal" <rustyraj18(a)gmail.com> wrote in message <i0qmhu$ghk$1(a)fred.mathworks.com>... > i need to compile a file that can read data from other file and use it. > > but when after compilation I change the data in the other file the standalone is not able to detect the change made in the other file. > > is there another way so that i can read data from other file and compile it and the standalone responds to the change made in other file > > with regards > raj this is very confusing... THINK - then POST... us
From: Christopher on 4 Jul 2010 19:37 "Raj Kamal" <rustyraj18(a)gmail.com> wrote in message <i0qmhu$ghk$1(a)fred.mathworks.com>... > i need to compile a file that can read data from other file and use it. > > but when after compilation I change the data in the other file the standalone is not able to detect the change made in the other file. > > is there another way so that i can read data from other file and compile it and the standalone responds to the change made in other file > > with regards > raj I agree with what Walter said. If however, your 'other file' is just another .m file then you can't expect the standalone to be executing a version updated post-compilation. If you're 'other file' (the file you are reading from) is anything else such as .txt, .xml, .jpg etc. then I would read into the documentation of the method that you are using to read the file and how that is supported by the Compiler, Chris
|
Pages: 1 Prev: plot 3d Next: remove alternate elements in a vector |