Hey guys,
I have a folder called 'KR5' filled with 100 notepad files. Each notepad file has lots of data that I want. I want to read the data from each file and store it.
Here is my approach:
Using a for loop, read and store all of notepad file names into a variable "Direc".
Using another for loop, open each file and extract the data and store it. Here is the code I have so far:
clc;clear all;addpath(genpath(pwd));Direc = dir('KR5');for i = 1:length(Direc) Direcname(i) = Direc(i).name;end
I am getting this error:
??? In an assignment A(:) = B, the number of elements in A and B must be the same.
Can someone help me with this?
Best Answer