MATLAB: Read specific column from the text file and how to store the values into the matrix/vector thank you How to store the values of the specific columns get from the text file into the matrix or vector ? Thank you Best Answer From the previous question:https://www.mathworks.com/matlabcentral/answers/443436-read-first-column-from-the-text-file#answer_359707Vector = data{:}%^^^^^^^-—-—-—-— this is how you define a variable Related SolutionsMATLAB: How to save array values in .mat file in 1 column and multiple rows instead of multiple columns in 1 row. Transpose j before saving it. E.g.,j = j.'; % <-- transpose jsave('j.mat', 'j'); MATLAB: How to combine multiple columns into array Two waysarray = cat( 2, col1, col2, col3, col4, col5 );array = [ col1, col2, col3, col4, col5 ]; Related QuestionHow to compare columns within the matrixHow to create a loop for transpose row vector to column vectorMultiple loop do not loop
Best Answer