Octave 中的 textscan 未定义

发布于 2024-12-21 14:51:19 字数 198 浏览 2 评论 0原文

fid = fopen('data/data_file.csv');
all_messages = textscan(fid, format, 'delimiter', ',');

返回:

错误:“textscan”未定义

如何解决此问题?

fid = fopen('data/data_file.csv');
all_messages = textscan(fid, format, 'delimiter', ',');

Returns:

error: 'textscan' undefined

How do you fix this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

清风不识月 2024-12-28 14:51:19

核心答案

Octave 3.4.0 版本中添加了 textscan 功能,该版本于 2011 年 2 月发布。那么,您最好的选择是安装较新版本的 Octave。如果由于某种原因,这不是一个选项,您可以尝试使用 fscanf (按照建议 此处)。

历史

版本 3.4 发布消息,但 textscan.m 不存在于版本 3.2.4 发行版中。

它似乎是由于票证而添加的(滚动到底部票证),这是由于 请求。

Core answer

The textscan function was added to Octave in version 3.4.0, which was released in February 2011. Your best option, then, is to install a newer version of Octave. If, for some reason, that is not an option you could try using fscanf (as suggested here).

History

The textscan function is not mentioned in the new function list in the version 3.4 release news, but textscan.m is not present in the version 3.2.4 distribution.

It appears to have been added as a result of this ticket (scroll to the bottom of the ticket), which was created as a result of this request.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文