MATLAB Answers

0

how to select column from Table and create variable

Asked by khalil ur Rehman on 23 Apr 2019
Latest activity Commented on by khalil ur Rehman on 23 Apr 2019
Dear all,
Below is my code
clc;
close all;
clear all;
% Prepare DataSet
Trans = readtable('Ts_NData.csv');
Time = Trans(:, 1:4);
Los = Trans(:,5);
In this code Matlab create a new table not varibale. how i can create variable with this dataset.

  0 Comments

Sign in to comment.

1 Answer

Answer by Stephan
on 23 Apr 2019
Edited by Stephan
on 23 Apr 2019
 Accepted Answer

Time = Trans{:,1:4};
Los = Trans{:,5};

  1 Comment

Sign in to comment.