Hi guys.
Let me start wishing that everyone is ok due to COVID pandemic.
I have a .txt file with an excess of " * " carachters. What i want to do is to get rid oh those and create an 3 column matrix containing only the numbers. At this moment i have this:
clc; clear all; close all; [name,path]=uigetfile('.txt','Select File To Open'); file=[path,name]; A=textread(file,'%f %f %f',1,'headerlines',3,'delimiter','*');
and it gives me the following error:
Error using dataread Number of outputs must match the number of unskipped input fields. Error in textread (line 171) [varargout{1:nlhs}]=dataread('file',varargin{:}); %#ok<REMFF1>
Error in Untitled (line 9) A=textread(file,'%f %f %f',1,'headerlines',3,'delimiter','*','whitespace','');
I don't know how to fix so if you could help me i'll appreciated. I've attached the txt file.
Thanks in advance a please, stay safe.
Best Answer