how to select column from Table and create variable

22 views (last 30 days)
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.

Accepted Answer

Stephan
Stephan on 23 Apr 2019
Edited: Stephan on 23 Apr 2019
Time = Trans{:,1:4};
Los = Trans{:,5};

More Answers (0)

Categories

Find more on Matrices and Arrays in Help Center and File Exchange

Products


Release

R2018a

Community Treasure Hunt

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

Start Hunting!