<title>Examples</title>
<programlisting role="example"><![CDATA[
// create a struct date
-date=struct('day',25,'month' ,'DEC','year',2006)
+date_st=struct('day',25,'month' ,'DEC','year',2006)
//change the month
-date.month='AUG';
+date_st.month='AUG';
// change the year
-date.year=1973;
+date_st.year=1973;
//change the day
-date.day=19;
+date_st.day=19;
// add a new field
-date.semaine=32
+date_st.semaine=32
]]></programlisting>
</refsection>
<refsection>
<title>Exemples</title>
<programlisting role="example"><![CDATA[
//creer une struct: date les champs sont: 'jour' (valeur: 25), 'mois' (valeur: 'DEC'), 'annee' (valeur: 2006)
-date=struct('jour',25,'mois','DEC','annee',2006)
+date_st=struct('jour',25,'mois','DEC','annee',2006)
// changer la valeur des champs
-date.jour=19;
-date.mois='AOU';
-date.annee=1973;
+date_st.jour=19;
+date_st.mois='AOU';
+date_st.annee=1973;
// ajouter un champ 'semaine'
-date.semaine=32
+date_st.semaine=32
]]></programlisting>
</refsection>
<refsection>
<programlisting role="example"><![CDATA[
// criando um dado struct
-date=struct('dia',25,'mes' ,'DEZ','ano',2006)
+date_st=struct('dia',25,'mes' ,'DEZ','ano',2006)
//mudando o mes
-date.mes='AGO';
+date_st.mes='AGO';
// mudando o ano
-date.ano=1973;
+date_st.ano=1973;
//mudando o dia
-date.dia=19;
+date_st.dia=19;
// adicionando um novo campo
-date.semana=32
+date_st.semana=32
]]></programlisting>
</refsection>