필터 지우기
필터 지우기

can anyone tell me how to create table in matlab?

조회 수: 1 (최근 30일)
Pooja Prajapati
Pooja Prajapati 2017년 2월 1일
댓글: venkat ta 2019년 1월 3일
please help me to create table using matlab
  댓글 수: 1
Stephen23
Stephen23 2017년 2월 1일
@Pooja Prajapati: did you try reading the MATLAB documentation? It shows several ways to create tables, and gives lots of examples:

댓글을 달려면 로그인하십시오.

답변 (1개)

Iddo Weiner
Iddo Weiner 2017년 2월 1일
편집: Steven Lord 2017년 2월 1일
There's great documentation for these kinds of stuff (this is one of the virtues of MATLAB):
[SL: Edited to correct the usage of the name MATLAB not to use the possessive and to fix a typo.]
  댓글 수: 5
Iddo Weiner
Iddo Weiner 2017년 2월 2일
Notice that the syntax is different than in SQL: in your example what you're actually doing is calling your table "T", and telling it take variables called "speakerid" and "name" and store them in the table. You're getting an error becasue you haven't defined these variables.
Here's a simple usage example (although, really, these things are extremely well documented so check out the link I put at the beginning of this answer):
A = [1:3]';
B = {'A';'B';'C'};
my_table = table(A,B)
here's what you get:
my_table =
A B
_ ___
1 'A'
2 'B'
3 'C'
venkat ta
venkat ta 2019년 1월 3일
Hello,
thanks for the code. How to change the columns and rows colors?
Venkat

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Structures에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by