⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 271.txt

📁 This complete matlab for neural network
💻 TXT
字号:
发信人: GzLi (笑梨), 信区: DataMining
标  题: [合集]help-matlab之import data!
发信站: 南京大学小百合站 (Wed Dec 11 23:58:02 2002)

kailey (kailey) 于Tue Dec  3 10:55:59 2002)
提到:

用Matlab的File/import Data

将1.txt数据文件导入以后,怎么load?格式是什么?急阿!



GzLi (笑梨) 于Tue Dec  3 11:04:52 2002提到:

1.txt
ascii数据
比如
1 2 3 3
2 2 2 2 
2 3 3 3
可以用
mydata=load('1.txt')

【 在 kailey (kailey) 的大作中提到: 】
: 用Matlab的File/import Data
: 将1.txt数据文件导入以后,怎么load?格式是什么?急阿!


kailey (kailey) 于Tue Dec  3 14:10:53 2002)
提到:

Hi GzLi,thanks for your enthusiasm!

i will abide your suggestion!

:)


【 在 GzLi 的大作中提到: 】

: 1.txt

: ascii数据

: 比如

: 1 2 3 3

: 2 2 2 2 

: 2 3 3 3

: 可以用

: mydata=load('1.txt')

: 【 在 kailey (kailey) 的大作中提到: 】



president (江海客) 于Thu Dec  5 12:46:23 2002)
提到:

matlab中有一个专门的两行的程序,很简单,可惜记不清了


【 在 kailey 的大作中提到: 】

: 用Matlab的File/import Data

: 将1.txt数据文件导入以后,怎么load?格式是什么?急阿!



snoopyzhao (闲逛) 于Thu Dec  5 14:09:03 2002)
提到:

help load


LOAD Load workspace variables from disk.

   LOAD FILENAME retrieves all variables from a file given a full pathname

   or a MATLABPATH relative partial pathname (see PARTIALPATH).  If FILENAME


   has no extension LOAD looks for FILENAME and FILENAME.mat and treats it

   as a binary "MAT-file". If FILENAME has an extension other than .mat, it

   is treated as ASCII.

 

   LOAD, by itself, uses the binary "MAT-file" named 'matlab.mat'.  It is

   an error if 'matlab.mat' is not found.

 

   LOAD FILENAME X loads only X.

   LOAD FILENAME X Y Z ... loads just the specified variables.  The

   wildcard '*' loads variables that match a pattern (MAT-file only).

 

   LOAD -ASCII FILENAME or LOAD -MAT FILENAME forces LOAD to treat the file

   as either an ASCII file or a MAT file regardless of file extension.  With


   -ASCII, LOAD will error if the file is not numeric text.  With -MAT, LOAD


   will error if the file is not a MAT file generated by SAVE -MAT.

 

   If FILENAME is a MAT file, requested variables from FILENAME are created

   in the workspace. If FILENAME is not a MAT file, a double precision array


   is created with name based on FILENAME.  Leading underscores or digits in


   FILENAME are replaced with X.  Other non-alpha chars in FILENAME are

   replaced with underscores.

 

   S = LOAD(...) returns the contents of FILENAME in variable S.  If

   FILENAME is a MAT file, S is a struct containing fields matching the

   variables retrieved.  If FILENAME is an ASCII file, S is a double

   precision array.

 

   Use the functional form of LOAD, such as LOAD('filename'), when the

   file name is stored in a string, when an output argument is requested,

   or if FILENAME contains spaces.

 

   See also SAVE, WHOS, UILOAD, SPCONVERT, PARTIALPATH, IOFUN, FILEFORMATS.

 

  Overloaded methods

   help activex/load.m


 Overloaded methods

    help ccshelp/load.m

    help mdevproject/load.m

    help cgproject/load.m

    help xpc/load.m


【 在 kailey 的大作中提到: 】

: 用Matlab的File/import Data

: 将1.txt数据文件导入以后,怎么load?格式是什么?急阿!



mistle (槲寄生◎檞寄生) 于Thu Dec  5 16:11:50 2002提到:

load函数应该与save函数相对吧,前两天用save想将一整型数组保存
在文档中,但是无论怎样选择参数,保存的始终是浮点数,哪位能指
点一下怎样用save保存整型数组(abc.txt打开后是整数而不是浮点数)?

【 在 snoopyzhao (闲逛) 的大作中提到: 】
: help load
: 
: LOAD Load workspace variables from disk.
:    LOAD FILENAME retrieves all variables from a file given a full pathname
:    or a MATLABPATH relative partial pathname (see PARTIALPATH).  If FILENAME
:    has no extension LOAD looks for FILENAME and FILENAME.mat and treats it
:    as a binary "MAT-file". If FILENAME has an extension other than .mat, it
:    is treated as ASCII.
:  
:    LOAD, by itself, uses the binary "MAT-file" named 'matlab.mat'.  It is
:    an error if 'matlab.mat' is not found.
:  
:    LOAD FILENAME X loads only X.
:    LOAD FILENAME X Y Z ... loads just the specified variables.  The
:    wildcard '*' loads variables that match a pattern (MAT-file only).
:  
:    LOAD -ASCII FILENAME or LOAD -MAT FILENAME forces LOAD to treat the file
:    as either an ASCII file or a MAT file regardless of file extension.  With
:    -ASCII, LOAD will error if the file is not numeric text.  With -MAT, LOAD
:    will error if the file is not a MAT file generated by SAVE -MAT.
: (以下引言省略 ... ...)


GzLi (笑梨) 于Thu Dec  5 18:53:52 2002提到:

1.fwrite 控制参数
2. 在workspace中显示,然后copy - paste

都是极笨的办法,我没有找到其它方法。

【 在 mistle (槲寄生◎檞寄生) 的大作中提到: 】
: load函数应该与save函数相对吧,前两天用save想将一整型数组保存
: 在文档中,但是无论怎样选择参数,保存的始终是浮点数,哪位能指
: 点一下怎样用save保存整型数组(abc.txt打开后是整数而不是浮点数)?
: 【 在 snoopyzhao (闲逛) 的大作中提到: 】
: (以下引言省略 ... ...)


⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -