i'm using save function[save(filename,'var'...)]to save my variable
into a file(numbers and characters).but the contain of the file is
something weird,lots of symbols and not the thing that i expected to
get
|
|
0
|
|
|
|
Reply
|
kahboon (11)
|
4/11/2008 4:40:28 PM |
|
kahboon@gmail.com writes:
> i'm using save function[save(filename,'var'...)]to save my variable
> into a file(numbers and characters).but the contain of the file is
> something weird,lots of symbols and not the thing that i expected to
> get
That is a MAT file. Maybe you want save(filename, 'var', '-ascii') so
you can read the contents of the file?
-Peter
|
|
0
|
|
|
|
Reply
|
boettcher (2302)
|
4/11/2008 5:16:07 PM
|
|
kahboon@gmail.com wrote in message
<cec6a014-4989-417f-81bc-2ac59ea97d96@s39g2000prd.googlegroups.com>...
> i'm using save function[save(filename,'var'...)]to save my
variable
> into a file(numbers and characters).but the contain of the
file is
> something weird,lots of symbols and not the thing that i
expected to
> get
Maybe can you tell uss what you expected to then...
Save by default save in MAT format that you can read only in
MATLAB with load.
Maybe you can try the '-ascii' option of save but only for
numbers...
|
|
0
|
|
|
|
Reply
|
caro954701 (319)
|
4/11/2008 5:21:02 PM
|
|
On Apr 12, 1:21=A0am, "French Caro " <caro95...@nospam.free.fr> wrote:
> kahb...@gmail.com wrote in message
>
> <cec6a014-4989-417f-81bc-2ac59ea97...@s39g2000prd.googlegroups.com>...
>
> > i'm using save function[save(filename,'var'...)]to save my
> variable
> > into a file(numbers and characters).but the contain of the
> file is
> > something weird,lots of symbols and not the thing that i
> expected to
> > get
>
> Maybe can you tell uss what you expected to then...
> Save by default save in MAT format that you can read only in
> MATLAB with load.
> Maybe you can try the '-ascii' option of save but only for
> numbers...
ya.before that is already try the'-ascii'.i want to save a matrix with
characters and the numbers into text file.Is it possible?
|
|
0
|
|
|
|
Reply
|
kahboon (11)
|
4/11/2008 11:10:27 PM
|
|
On Apr 12, 1:16=A0am, Peter Boettcher <boettc...@ll.mit.edu> wrote:
> kahb...@gmail.com writes:
> > i'm using save function[save(filename,'var'...)]to save my variable
> > into a file(numbers and characters).but the contain of the file is
> > something weird,lots of symbols and not the thing that i expected to
> > get
>
> That is a MAT file. =A0Maybe you want save(filename, 'var', '-ascii') so
> you can read the contents of the file?
>
> -Peter
both the numbers and characters in the matrix is save in class of
'char'.the '-ascii' is only for numbers,right?
|
|
0
|
|
|
|
Reply
|
kahboon (11)
|
4/11/2008 11:28:21 PM
|
|
kahboon@gmail.com wrote in message
<2a003792-c2e6-4595-a88b-8a511cf5cc3d@q27g2000prf.googlegroups.com>...
> On Apr 12, 1:21=A0am, "French Caro "
<caro95...@nospam.free.fr> wrote:
> > kahb...@gmail.com wrote in message
> >
> >
<cec6a014-4989-417f-81bc-2ac59ea97...@s39g2000prd.googlegroups.com>...
> >
> > > i'm using save function[save(filename,'var'...)]to save my
> > variable
> > > into a file(numbers and characters).but the contain of the
> > file is
> > > something weird,lots of symbols and not the thing that i
> > expected to
> > > get
> >
> > Maybe can you tell uss what you expected to then...
> > Save by default save in MAT format that you can read only in
> > MATLAB with load.
> > Maybe you can try the '-ascii' option of save but only for
> > numbers...
>
> ya.before that is already try the'-ascii'.i want to save a
matrix with
> characters and the numbers into text file.Is it possible?
Yes it is possible but you'll have to use low file I/O :
fopen, fprintf...See the help for those functions.
|
|
0
|
|
|
|
Reply
|
caro954701 (319)
|
4/14/2008 5:50:17 PM
|
|
|
5 Replies
33 Views
(page loaded in 0.11 seconds)
Similiar Articles: Save file defaults to utf-16 - comp.emacsI'm struggling to get emacs 21.2.1 set up on a debian 3.0, and having trouble with character sets. For example, when I save a document that contains ... IDL Save File Mystery - comp.lang.idl-pvwave:-( I now start up IDL and restore the save file and run it: IDL> Restore, '='C:\IDL\testobjview.sav' IDL> testobjview It runs perfectly and nothing else is ... API: Iterate configs, delete suppressed features - save file as ...You have to do it in 2 steps: 1) save one file for each config 2) delete the suppressed features in each file. Once it works, I would be happy to make it available on my ... Save output image file in a specified folder - comp.graphics.apps ...Save output image file in a specified folder - comp.graphics.apps ... How to save files into a specific folder - comp.soft-sys.matlab ... Re: How to output the file names ... Adobe 9, save as prompt when trying to open a .PDF file - comp ...One of our users is trying to open a .PDF file in Adobe 9 and receives a file download prompt indicating ' Do you want to save this file, or find a ... How to save files into a specific folder - comp.soft-sys.matlab ...How to save files into a specific folder - comp.soft-sys.matlab ..... on a dataset of movies, and each set ... disk into a movie?\n(This will take several ... "The document could not be saved "- message from Acrobat Reader ...There are two problems here 1. opening instead of d/l to disk this freezes IE until the whole pdf file is complete. 2. being unable to save the pdf to disk. Tries to save the file, instead of executing it - comp.lang.php ...>> >> If I say "save file", or even "open it", the web page is blank, but if >> I look at the page source, I can see the output (correctly). > That does not compute Captain. How to save text and numerical matrix in one txt file - comp.soft ...How to save text and numerical matrix in one txt file - comp.soft ... convert mat files (struct) to ascii text files / save data as ... How to ... Script to save a file and use the auto incremented filename - comp ...Script to save a file and use the auto incremented filename - comp ..... to cut a area out of a photo then paste it as a new image ... incremented file name? Saved game - Wikipedia, the free encyclopediaDepending on how often the player saves, Psycho Mantis and Revolver Ocelot comment on how often they save, and also comment if save files from certain other Konami games are ... Spiderman 2 | Files | Spider-man 2 save file | Save Games | Tools ...Download Spider-man 2 save file for Spiderman 2 at Game Front. Also find Gaming News, Reviews, Walkthroughs, Cheats and more. Save File toSave File to is a small Firefox extension that helps you to save links, images and web pages to user-defined folders and their sub-folders straight from context menu ... Need for Speed Underground 2 | Files | NFS Underground 2 save file ...Download NFS Underground 2 save file for Need for Speed Underground 2 at Game Front. Also find Gaming News, Reviews, Walkthroughs, Cheats and more. Save File Transfer - Mass Effect Wiki - Mass Effect, Mass Effect 2 ...Mass Effect → Mass Effect 2 Edit Mechanics Edit. To import save games on the Xbox 360, the game must be played on the hard drive the saved game was completed on ... 6/22/2012 2:30:29 AM
|