<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://learn.cemetech.net/index.php?action=history&amp;feed=atom&amp;title=TI-BASIC%3AFill</id>
	<title>TI-BASIC:Fill - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://learn.cemetech.net/index.php?action=history&amp;feed=atom&amp;title=TI-BASIC%3AFill"/>
	<link rel="alternate" type="text/html" href="http://learn.cemetech.net/index.php?title=TI-BASIC:Fill&amp;action=history"/>
	<updated>2026-05-15T09:32:10Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.3</generator>
	<entry>
		<id>http://learn.cemetech.net/index.php?title=TI-BASIC:Fill&amp;diff=950&amp;oldid=prev</id>
		<title>Maintenance script: Initial automated import</title>
		<link rel="alternate" type="text/html" href="http://learn.cemetech.net/index.php?title=TI-BASIC:Fill&amp;diff=950&amp;oldid=prev"/>
		<updated>2016-02-24T18:26:55Z</updated>

		<summary type="html">&lt;p&gt;Initial automated import&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Template:TI-BASIC:Command&lt;br /&gt;
|picture=FILL.GIF&lt;br /&gt;
|summary=Fills a list or matrix with one number.&lt;br /&gt;
|syntax=Fill(&amp;#039;&amp;#039;value&amp;#039;&amp;#039;,&amp;#039;&amp;#039;matrix&amp;#039;&amp;#039;)&lt;br /&gt;
|location=Press:&lt;br /&gt;
# 2nd LIST to access the list menu.&lt;br /&gt;
# RIGHT to access the OPS submenu.&lt;br /&gt;
# 4 to select Fill(, or use arrows.&lt;br /&gt;
&lt;br /&gt;
Alternatively, press:&lt;br /&gt;
# MATRX (83) or 2nd MATRX (83+ or higher) to access the matrix menu.&lt;br /&gt;
# RIGHT to access the MATH submenu.&lt;br /&gt;
# 4 to select Fill(, or use arrows.&lt;br /&gt;
|compatibility=TI-83/84/+/SE&lt;br /&gt;
|size=1 byte&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
The Fill( command takes an existing list or matrix variable and sets all its elements to a single number. It doesn&amp;#039;t return anything and only works on already defined variables.&lt;br /&gt;
&lt;br /&gt;
 {5}→dim(L1)&lt;br /&gt;
 Fill(2,L1)&lt;br /&gt;
 L1&lt;br /&gt;
 	{2 2 2 2 2}&lt;br /&gt;
 &lt;br /&gt;
 {3,4}→dim([A])&lt;br /&gt;
 Fill(1,[A])&lt;br /&gt;
 [A]&lt;br /&gt;
 	[[1 1 1 1]&lt;br /&gt;
 	 [1 1 1 1]&lt;br /&gt;
 	 [1 1 1 1]]&lt;br /&gt;
&lt;br /&gt;
= Optimization =&lt;br /&gt;
&lt;br /&gt;
When creating a new list or matrix you want to fill with zeroes, it&amp;#039;s better to delete it then create it with [[TI-BASIC:Dim|Dim(]], which will set all entries to 0, than to set its dimensions with dim( (which may not clear what was there before) then use Fill(.&lt;br /&gt;
&lt;br /&gt;
= Errors =&lt;br /&gt;
&lt;br /&gt;
On a TI-84+CSE, using Fill(List,List) will cause a RAM clear. For example: Fill({1,2,3},{1,2,3} will cause a RAM Clear. this does not apply on any other models, only giving you argument and data type errors.&lt;br /&gt;
&lt;br /&gt;
= Related Commands =&lt;br /&gt;
&lt;br /&gt;
* [[TI-BASIC:Dim|Dim(]]&lt;br /&gt;
* [[TI-BASIC:Augment|Augment(]][[Category:TI-BASIC]]&lt;br /&gt;
[[Category:TIBD]]&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>