Thread Subject: reading file

Subject: reading file

From: Paul

Date: 3 Mar, 2009 05:16:01

Message: 1 of 2

I have my file in this format which is filenames.txt
-------------------inputfilenames-------------------
%cvi = code_variable_input
%cci = code_calibration_input
%co = code_output
%fvi = field_variable_input
%fo = field_output
%pvi = prediction_input

based on the tag %cvi,%cci,%co,%fvi,%fo,%pvi , I have to assign the code_variable_input, code_calibration_input, .. etc to a structure varible

any help how to do coding part ???

Subject: reading file

From: Miroslav Balda

Date: 3 Mar, 2009 10:11:01

Message: 2 of 2

"Paul " <paulsp@infotechsw.com> wrote in message <goieeh$bsu$1@fred.mathworks.com>...
> I have my file in this format which is filenames.txt
> -------------------inputfilenames-------------------
> %cvi = code_variable_input
> %cci = code_calibration_input
> %co = code_output
> %fvi = field_variable_input
> %fo = field_output
> %pvi = prediction_input
>
> based on the tag %cvi,%cci,%co,%fvi,%fo,%pvi , I have to assign the code_variable_input, code_calibration_input, .. etc to a structure varible
>
> any help how to do coding part ???

Hi,
See
help fileparts
and after application of the function, you may decide, what will you do. If your files are a mixture of text and data, you have to program input under the structure of files.

Mira

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread

Contact us at files@mathworks.com