Mathematica 的日期格式
当我试图在 Mathematica 中绘制一些金融时间序列时,我遇到了一个如下图所示的问题:
似乎 2000 年之后不再处理数据
有没有办法解决这个问题?
从 Bloomberg 或 Excel 导出时间序列以在数学中使用它们的最佳格式是什么(使用版本 8)。
我确实了解 FinancialData 函数。然而,由于不知道确切的符号,直接使用 Mathematica 来实现这一点变得极其困难。
As I am trying to plot a few financial time series in Mathematica, I just ran into a problem illustrated in the figure below :
It seems the data are no longer dealt with after Year 2000
Is there a way to fix that ?
What would be the best format to export time series from Bloomberg or Excel to use them in Mathematic (Using version 8).
I do know about the FinancialData function. However, not knowing the exact symbols, it makes it extremely difficult to use Mathematica directly for this.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
为什么不使用 WolframAlpha[...] 函数 - 它导入本机到 Mathematica 格式并更新到当前日期:
这只是一个输入示例。我不确定您到底需要什么样的数据,但您可以通过 WolframAlpha 函数获得很多数据。阅读以下内容:
1) WolframAlpha
2) Wolfram|Alpha 中的数据格式
Why not to use WolframAlpha[...] function - it imports native to Mathematica format and goes up to current dates:
That was just an example of input. I am not sure what kind of data you need exactly, but you can get a lot of them via WolframAlpha function. Read this:
1) WolframAlpha
2) Data Formats in Wolfram|Alpha
使用
DateFunction
选项告诉DateListPlot
如何转换日期:(括号很重要。)
Use the
DateFunction
option to tellDateListPlot
how to convert dates:(The parentheses are important.)
这是一个将这些日期字符串转换为 Mathematica 可以更好处理的格式的函数:
您可以尝试
编辑: 最初我尝试了
DateList[{"Nov-11", {"MonthNameShort", "YearShort "}}]
但这告诉我String "Nov-
。也许是一个错误?11" 不能解释为格式为 {"MonthNameShort",
“YearShort”}。
Here's a function to convert those date strings to a format Mathematica can handle better:
You can try
EDIT: Originally I tried
DateList[{"Nov-11", {"MonthNameShort", "YearShort"}}]
but this tells meString "Nov-
. Perhaps a bug?11" cannot be interpreted as a date in format {"MonthNameShort",
"YearShort"}.