Borrar filtros
Borrar filtros

can anyone tell me how to create table in matlab?

2 visualizaciones (últimos 30 días)
Pooja Prajapati
Pooja Prajapati el 1 de Feb. de 2017
Comentada: venkat ta el 3 de En. de 2019
please help me to create table using matlab
  1 comentario
Stephen23
Stephen23 el 1 de Feb. de 2017
@Pooja Prajapati: did you try reading the MATLAB documentation? It shows several ways to create tables, and gives lots of examples:

Iniciar sesión para comentar.

Respuestas (1)

Iddo Weiner
Iddo Weiner el 1 de Feb. de 2017
Editada: Steven Lord el 1 de Feb. de 2017
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 comentarios
Iddo Weiner
Iddo Weiner el 2 de Feb. de 2017
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 el 3 de En. de 2019
Hello,
thanks for the code. How to change the columns and rows colors?
Venkat

Iniciar sesión para comentar.

Categorías

Más información sobre Structures en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by