Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
Mathematics
General TopicsResearchOperations ResearchStatisticsMathematical LogicNumerical AnalysisUndergraduate MathAlgebra HelpRecreational Math
Math Software
MapleMathematicaMATLABScilabSASSPSS

Re: How to read a text to Cell ?



Tip: Looking for answers? Try searching our database.



You are accessing this site in a read-only mode. For full access to all member benefits, including message posting, please login or register. Registration is completely free, simple, and takes only a few seconds.

Login | Free MathKB.com registration | Whole discussion thread

The message you are replying to and its parents are listed in the reverse order with the most recent posts first. This might not be the whole discussion thread. To read all the messages in this thread please click here.

Re: How to read a text to Cell ?

Scott Burnside24 Jul 2008 20:12
Zheyu.Gao@googlemail.com wrote in message <cad24a09-3de7-
49e1-9d73-818edf449288@q28g2000prh.googlegroups.com>...
> hi, eveyone, I got a problem transfering a txt file to cell array, the
> problem as following
[quoted text clipped - 27 lines]
>
> can anyone give some help please!!

help cellstr

Zheyu.Gao@googlemail.com24 Jul 2008 18:43
hi, eveyone, I got a problem transfering a txt file to cell array, the
problem as following
-----------------------------------------------
mask.txt
-----------------------------------------------
3x3 4x4 5x5   //mask definitions can vary

1 2 3
4 5 6
7 8 9

1 1 1 1
2 2 2 2
3 3 3 3
4 4 4 4

1 2 3 4 5
1 2 3 4 5
1 2 3 4 5
1 2 3 4 5
1 2 3 4 5
------------------------------------------------------
how do I convert this to a cell which
C{1,1}=3x3
C{1,2}=4x4
C{1,3}=5x5

I tried textscan but the format field is fixed, in my situation,
format is variable depend on the 1st line of the text file.

can anyone give some help please!!

Quick links:

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage




©2010 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.