Info

この質問は閉じられています。 編集または回答するには再度開いてください。

I find there is some problem with the importdata function import data, there is some data without negative character?What is the reason?

1 回表示 (過去 30 日間)
huazai2020
huazai2020 2020 年 7 月 5 日
閉鎖済み: Stephen23 2020 年 7 月 6 日
I find there is some problem with the importdata function import data, there is some data without negative character?What is the reason?
The below is the code:
clc;clear all;
filec=importdata('xcood-020.txt');
data(:,1)=filec.data;
please see the data file attached. How to deal with it ?

回答 (1 件)

Image Analyst
Image Analyst 2020 年 7 月 5 日
I don't know. I think maybe all the minus signs in the string on each line might be confusing it. Try readmatrix:
data = readmatrix('xcood-020.txt')

この質問は閉じられています。

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by