how to select column from Table and create variable

조회 수: 22 (최근 30일)
khalil ur Rehman
khalil ur Rehman 2019년 4월 23일
댓글: khalil ur Rehman 2019년 4월 23일
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.

채택된 답변

Stephan
Stephan 2019년 4월 23일
편집: Stephan 2019년 4월 23일
Time = Trans{:,1:4};
Los = Trans{:,5};

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Matrices and Arrays에 대해 자세히 알아보기

제품


릴리스

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by