You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: table.m
    path of file: ./repos/spinw/swfiles/@spinw
    
    the code of the file until where you have to start completion: function T = table(obj,type,index,showVal)
% outputs easy to read tables of internal data
% 
% ### Syntax
% 
% `T = table(obj,type,{index},{showval})`
% 
% ### Description
% 

    
function T = table(obj,type,index,showVal)
% outputs easy to read tables of internal data
% 
% ### Syntax
% 
% `T = table(obj,type,{index},{showval})`
% 
% ### Description
% 
% `T = table(obj,type,{index},{showval})` returns a table that shows in an
% easy to read/export format different internal data, such as magnetic atom
% list, bond list, magnetic structure, etc.
%  
% For the matrix labels in the list of bonds, the '>>' sign means that the
% matrix value is determined using the bond symmetry operators.
%  
% {{note The `table` data type is only supported in Matlab R2013b or newer.
% When running older versions of Matlab, `spinw.table` returns a struct.}}
% 
% ### Input Arguments
% 
% `obj`
% : [spinw] object.
% 
% `type`
% : String, determines the type of data to show, possible values are:
%   * `'matom'`     properties of magnetic atoms in the unit cell,
%   * `'matrix'`    list of matrices,
%   * `'ion'`       single ion term in the Hamiltonian,
%   * `'bond'`      properties of selected bonds,
%   * `'mag'`       magnetic structure.
% 
% `index`
% : Indexing into the type of data to show, its meaning depend