matlab2014a中help与参考页翻译 Tutorials – workspace variables
来源:互联网 发布:winpe启动盘制作软件 编辑:程序博客网 时间:2024/05/18 13:27
镇场诗:慈心积善融学习,技术誓为大家学。善心速造多好事,前人栽树后乘凉。我今于此写经验,愿见文者得启发。
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Workspace Variables
The workspace contains variables that you create within or import into MATLAB® from data files or other programs.
工作区包含的变量,有些是你创建的,有些是MATLAB从其它文件或者程序中读取到的。
For example, these statements create variables A and B in the workspace.
举个例子,下面的语句在工作区创建了变量A与B
A = magic(4);
B = rand(3,5,2);
You can view the contents of the workspace using whos.
你可以用whos查看工作区里面的内容。
whos
Name Size Bytes Class Attributes
A 4x4 128 double
B 3x5x2 240 double
The variables also appear in the Workspace pane on the desktop.
变量们在桌面的工作区章也有显示。
Workspace variables do not persist after you exit MATLAB. Save your data for later use with the save command,
save myfile.mat
工作区的变量们在你退出MATLAB后就不存在了,所以保存你的数据很重要。
Saving preserves the workspace in your current working folder in a compressed file with a .mat extension, called a MAT-file.
保存工作区的当前的数据状态,在你现在工作的文件夹中生成一个后缀名为.mat的文件。
To clear all the variables from the workspace, use the clear command.
用clear命令,清除工作区中的所有变量。
Restore data from a MAT-file into the workspace using load.
load myfile.mat
从.mat文件中恢复数据到工作区用 load命令。
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
我是一个新手,翻译还有许多不完善的地方,请您看翻译的时候多多思考。
MATLAB是一个优秀的软件,值得学习。如果您有一些不会的知识,咱们可以相互讨论。
如果您认为翻译可以有改进的地方,有错误的地方,请留下评论,我会处理的。
注:如果我的博文无意中侵犯了您的权益,请告知。看到您的告知后,我将及时作出处理。
- matlab2014a中help与参考页翻译 Tutorials – workspace variables
- matlab2014a中help与参考页翻译 tutorials-desktop basics
- matlab2014a中help与参考页翻译 Tutorials- array indexing
- matlab2014a中help与参考页翻译 Tutorials-matrices and arrays- Array Creation
- matlab2014a中help与参考页翻译 Tutorials-matrices and arrays- Matrix and Array Operations
- matlab2014a中help与参考页翻译 Tutorials-matrices and arrays- Concatenation and Complex Numbers
- matlab2014a中help与参考页翻译 limit
- matlab2014a中help与参考页翻译 find
- matlab2014a中help与参考页翻译 roots
- matlab2014a中help与参考页翻译 all
- matlab2014a中help与参考页翻译 not
- matlab2014a中help与参考页翻译 and
- matlab2014a中help与参考页翻译 or, |
- matlab2014a中help与参考页翻译 xor
- matlab2014a中help与参考页翻译 MATLAB Product Description
- matlab2014a中help与参考页翻译 cat
- matlab2014a中help与参考页翻译 Character Strings
- matlab2014a中help与参考页翻译 Calling Functions
- 6个关于dd命令备份Linux系统的例子
- 62-Binary Tree Level Order Traversal
- 在执行期间制定文件位置并读取。利用BufferedReader与FileReader
- 求学的最后阶段,来一场说走就走的旅行,那该是一件多惬意的事
- 【Cocos2d-x(2)】魔塔MagicTown第二章之人物篇
- matlab2014a中help与参考页翻译 Tutorials – workspace variables
- java集合15--set架构
- 语法篇7之clr属性
- C++第五次实验-------多继承
- 语法篇8之特性
- Cent OS JDK8安装
- matlab2014a中help与参考页翻译 Character Strings
- Android Button
- JDBC查询数据库中的数据