产品
产品概览
Mathematica
Mathematica 学生版
Mathematica Home Edition
Wolfram
CDF Player
(免费下载)
可计算文档格式(CDF)
web
Mathematica
grid
Mathematica
Wolfram
Workbench
Wolfram
SystemModeler
Wolfram
Finance Platform
Mathematica
附加程序包
Wolfram|Alpha 产品
解决方案
解决方案概览
工程
航空航天与国防
化学工程
控制系统
电气工程
图像处理
工业工程
材料科学
机械工程
运筹学
光学
石油工程
生物技术与医药
生物信息学
医学影像
金融、统计、商业分析
精算科学
数据分析与挖掘
计量经济学
经济学
金融工程与数学
金融风险管理
统计
软件工程、内容传递
创作与出版
界面开发
软件工程
网页开发
科学
天文学
生物科学
化学
环境科学
地球科学
社会与行为科学
设计、艺术以及娱乐
游戏设计、特殊效果及衍生艺术
教育
STEM 教育倡议
高等教育
高职高专院校
中小学教育
学生
科技
可计算文档格式(CDF)
高性能并行计算(HPC)
参见:技术指南
购买
网上商店
其它购买方式
批量许可及站点许可证
联络销售部
软件
服务
升级
培训
书籍
Merchandise
技术支持
技术支持概览
Mathematica
参考资料
知识库
学习中心
技术服务
社区与论坛
培训
查看站点是否有许可证授权
Wolfram 用户门户
公司概况
关于 Wolfram Research
新闻与活动
Wolfram 博客
合作伙伴
工作机会
Mathematica
的历史
Stephen Wolfram 主页
联系我们
公司网站
全部站点
Wolfram|Alpha
演示项目
MathWorld
Integrator
Wolfram Functions Site
Mathematica Journal
Wolfram Media
Wolfram
Tones
Wolfram Science
Stephen Wolfram
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE
DOCUMENTATION CENTER
FOR THE LATEST INFORMATION.
DOCUMENTATION CENTER SEARCH
New to
Mathematica
?
Find your learning path
»
Mathematica
>
数据处理
>
导入和导出
>
C (.c)
>
MATHEMATICA IMPORT/EXPORT 格式
Code Generation
CCodeGenerator User Guide
CCompilerDriver User Guide
教程 »
|
Compile
CompiledFunction
StateSpaceModel
参见 »
|
CCodeGenerator
CCompilerDriver
更多关于 »
C
(.c)
C programming language.
General purpose implementation language for computer systems and applications.
Developed at Bell Telephone Laboratories in 1972.
Export
generates code compatible with the C99 standard.
EXPORT
Export
exports a list of compiled functions to one set of code and header files.
Export
exports a discrete-time state-space model
ss
.
Export
["
file
.c",
CompiledFunction
[
...
]]
exports a
CompiledFunction
object to C language code and header files.
Export
["
file
.c",
StateSpaceModel
[
...
]]
exports a discrete-time
StateSpaceModel
object.
Export
uses the string
in
Export
["
file
.c",
CompiledFunction
[
...
]]
as the C function name.
The exported source and header files have the same file name base.
Export
exports
expr
using
as the C function name.
Export
exports multiple
CompiledFunction
objects to one set of code and header files.
Export
creates code and header files by treating
expr
as specifying element
elem
.
Export
treats each
as specifying the corresponding
.
Export
exports
expr
with the specified option elements taken to have the specified values.
Export
uses rules to specify the elements to be exported.
See the reference page for full general information on
Export
.
ExportString
supports the C language format.
选项
Export
option:
"CreateHeaders"
True
whether to generate header file
参见
Compile
CompiledFunction
StateSpaceModel
教程
Code Generation
CCodeGenerator User Guide
CCompilerDriver User Guide
更多关于
CCodeGenerator
CCompilerDriver
范例
关闭所有单元
例
(4)
Generate C files for a mathematical function:
Export multiple
CompiledFunction
objects to a C source and header files:
Export a
StateSpaceModel
object to C source and header files:
Create source and header files with given function names:
Generate C files for a mathematical function:
In[1]:=
Out[1]=
Export multiple
CompiledFunction
objects to a C source and header files:
In[1]:=
Out[1]=
Export a
StateSpaceModel
object to C source and header files:
In[1]:=
Out[1]=
Create source and header files with given function names:
In[1]:=
Out[1]=