Up to what versions of MatLab can you still use textscan

4 ビュー (過去 30 日間)
Carol
Carol 2016 年 3 月 13 日
コメント済み: Walter Roberson 2017 年 6 月 6 日
Please help me a new user in finding a replacement for the command textscan in 2016a or tell me what older version of MatLab still accepts textscan command and is compatible with windows 10 Thanks
  1 件のコメント
Walter Roberson
Walter Roberson 2016 年 3 月 13 日
perhaps you were thinking of textread() rather than textscan()? textread() has been recommended against for a fair number of years.

サインインしてコメントする。

採用された回答

MHN
MHN 2016 年 3 月 13 日

その他の回答 (2 件)

Sandra Kocher
Sandra Kocher 2017 年 6 月 6 日
I have Matlab R2016a. And I want to use textscan, with the parameter "TextType". But Matlab gives me the following error: Error using textscan Unknown parameter 'TextType'.
Ideas?
The documentation says, that it should work fine with this version...
  1 件のコメント
Walter Roberson
Walter Roberson 2017 年 6 月 6 日
The string data type was not introduced until R2016b, so the TextType option of textscan() does not exist in R2016a. You are not looking at the documentation for your release, which is http://www.mathworks.com/help/releases/R2016a/matlab/ref/textscan.html

サインインしてコメントする。


Image Analyst
Image Analyst 2016 年 3 月 13 日
It's still accepted. At the bottom of the help it says it was introduced before R2006a and there is no mention that it will be discontinued (deprecated). So why are you asking up to what old version accepted it? Like I said, it's still accepted with no plans of not being accepted.
That being said, there are alternate methods of data entry if you want, like xlsread, readtable, dlmread, csvread, importdata, fscanf, sscanf, fgetl, fgets, fread, load, etc.
  2 件のコメント
Carol
Carol 2016 年 3 月 13 日
Hi, thank you for your answer(s). The reason being is that it will not accept it. Everything I have read implies it will, but it will not accept it
Image Analyst
Image Analyst 2016 年 3 月 13 日
What does that mean? No one has any idea how to fix it until you show us the error message, which means ALL the red text.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeLarge Files and Big Data についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by