Info

This question is closed. Reopen it to edit or answer.

I want to import data from text file into matlab through a script. The column headings are to be variable names.

1 view (last 30 days)
I want to import data from text file into matlab through script. The column headings are to be variable names.
  4 Comments
Shilpesh
Shilpesh on 16 Mar 2016
clear;clc; A=importdata(filename); v=genvarname(A.colheaders);
for i=1:length(A.colheaders) v(i)=A.data(:,i); end

Answers (0)

This question is closed.

Tags

Community Treasure Hunt

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

Start Hunting!