-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
235ce2c
commit 7ce0bcb
Showing
90 changed files
with
957 additions
and
177 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,126 @@ | ||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" | ||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | ||
|
||
<html xmlns = "http://www.w3.org/1999/xhtml"> | ||
<!-- | ||
SAME AS NELSON SOFTWARE | ||
--> | ||
|
||
<head> | ||
<meta name="generator" content= | ||
"HTML Generated by Nelson"/> | ||
<link rel="stylesheet" type="text/css" href="style.css" /> | ||
<link rel="stylesheet" href="mono-blue.css" type="text/css" /> | ||
<script src = "highlight.pack.js" type = "text/javascript"> | ||
</script> | ||
<script type = "text/javascript">hljs.highlightAll();</script> | ||
</script> | ||
<meta http-equiv="Content-Type" content = "text/html; charset=utf-8" /> | ||
<title>Direct computation with Table</title> | ||
|
||
</head> | ||
<body> | ||
|
||
<div class = "manualnavbar"> | ||
<table width = "100%"><tr> | ||
|
||
<td width="30%" class="previous"> | ||
<span class="top"><a href="1_accessing_manipulating_table.html"><< Accessing and Manipulating Tables in Nelson</a></span> | ||
</td> | ||
|
||
<td width="40%" class="center"> | ||
<span class="top"><a href="chapter_table.html">Tables</a></span> | ||
</td> | ||
|
||
<td width = "30%" class = "next"> | ||
<span class = "next"><a href = "array2table.html">array2table >></a></span> | ||
</td> | ||
|
||
</tr></table> | ||
<hr /> | ||
|
||
<h1 class="refname">Direct computation with Table</h1> | ||
<hr/> | ||
|
||
<h3>Description</h3> | ||
<hr/> | ||
|
||
<p></p> | ||
|
||
<p>You can perform calculations directly on tableswithout needing to index into them.</p> | ||
<p>To perform such operations using the same syntax as you would for arrays, your tables must meet several criteria:</p> | ||
<p>All variables within the table must have data types that support the intended calculations (e.g., numeric or logical types).</p> | ||
<p>When performing an operation where only one operand is a table, the other operand must be either a numeric or logical array.</p> | ||
<p>For operations involving two tables, they must have compatible sizes (i.e., the same number of rows and columns or the operation must make sense for the structures involved).</p> | ||
<p/> | ||
<p>Below is an example that demonstrates how to perform calculations without explicitly indexing into the table.</p> | ||
|
||
|
||
<h3>Example</h3> | ||
<hr/> | ||
|
||
<p>Adding a New Column</p> | ||
<pre> | ||
<code class = "nelson">% Create a sample table with sensor data | ||
T = table([1.5; -2.3; 4.7], [0.5; 1.1; -0.7], [-1; 2; 3], ... | ||
'VariableNames', {'Voltage', 'Current', 'Resistance'}); | ||
|
||
% Apply functions directly to the table columns | ||
abs(T) | ||
acos(T) | ||
acosh(T) | ||
T > 1 | ||
T + 2 | ||
T .* T | ||
abs(sin(T)) + 1 | ||
</code> | ||
</pre> | ||
|
||
<h3>See also</h3> | ||
<hr/> | ||
|
||
<p> | ||
<a href = "abs.html" class = "link">abs</a>, <a href = "acos.html" class = "link">acos</a>, <a href = "acosh.html" class = "link">acosh</a>, <a href = "acot.html" class = "link">acot</a>, <a href = "acotd.html" class = "link">acotd</a>, <a href = "acoth.html" class = "link">acoth</a>, <a href = "acsc.html" class = "link">acsc</a>, <a href = "acscd.html" class = "link">acscd</a>, <a href = "acsch.html" class = "link">acsch</a>, <a href = "asec.html" class = "link">asec</a>, <a href = "asecd.html" class = "link">asecd</a>, <a href = "asech.html" class = "link">asech</a>, <a href = "asin.html" class = "link">asin</a>, <a href = "asind.html" class = "link">asind</a>, <a href = "asinh.html" class = "link">asinh</a>, <a href = "atan.html" class = "link">atan</a>, <a href = "atand.html" class = "link">atand</a>, <a href = "atanh.html" class = "link">atanh</a>, <a href = "ceil.html" class = "link">ceil</a>, <a href = "cosd.html" class = "link">cosd</a>, <a href = "cosh.html" class = "link">cosh</a>, <a href = "cospi.html" class = "link">cospi</a>, <a href = "cot.html" class = "link">cot</a>, <a href = "cotd.html" class = "link">cotd</a>, <a href = "coth.html" class = "link">coth</a>, <a href = "csc.html" class = "link">csc</a>, <a href = "cscd.html" class = "link">cscd</a>, <a href = "csch.html" class = "link">csch</a>, <a href = "exp.html" class = "link">exp</a>, <a href = "fix.html" class = "link">fix</a>, <a href = "floor.html" class = "link">floor</a>, <a href = "log.html" class = "link">log</a>, <a href = "log10.html" class = "link">log10</a>, <a href = "log1p.html" class = "link">log1p</a>, <a href = "log2.html" class = "link">log2</a>, <a href = "nextpow2.html" class = "link">nextpow2</a>, <a href = "round.html" class = "link">round</a>, <a href = "sec.html" class = "link">sec</a>, <a href = "secd.html" class = "link">secd</a>, <a href = "sech.html" class = "link">sech</a>, <a href = "sin.html" class = "link">sin</a>, <a href = "sind.html" class = "link">sind</a>, <a href = "sinh.html" class = "link">sinh</a>, <a href = "sinpi.html" class = "link">sinpi</a>, <a href = "sqrt.html" class = "link">sqrt</a>, <a href = "tan.html" class = "link">tan</a>, <a href = "tand.html" class = "link">tand</a>, <a href = "tanh.html" class = "link">tanh</a>, <a href = "var.html" class = "link">var</a>, <a href = "acosd.html" class = "link">acosd</a>, <a href = "not.html" class = "link">not</a>, <a href = "plus.html" class = "link">plus</a>, <a href = "minus.html" class = "link">minus</a>, <a href = "times.html" class = "link">times</a>, <a href = "eq.html" class = "link">eq</a>, <a href = "ge.html" class = "link">ge</a>, <a href = "gt.html" class = "link">gt</a>, <a href = "le.html" class = "link">le</a>, <a href = "ne.html" class = "link">ne</a>, <a href = "lt.html" class = "link">lt</a>, <a href = "mrdivide.html" class = "link">mrdivide</a>, <a href = "rem.html" class = "link">rem</a>, <a href = "power.html" class = "link">power</a>, <a href = "pow2.html" class = "link">pow2</a>, <a href = "or.html" class = "link">or</a>, <a href = "rem.html" class = "link">mod</a>, <a href = "ldivide.html" class = "link">ldivide</a>.</p> | ||
|
||
<h3>History</h3> | ||
<hr/> | ||
|
||
<table summary = "history" style="width:50%"> | ||
<tr> | ||
<th>Version</th> | ||
<th>Description</th> | ||
</tr> | ||
<tr> | ||
<td>1.9.0</td> | ||
<td>initial version</td> | ||
</tr> | ||
|
||
</table> | ||
|
||
<h3>Author</h3> | ||
<hr/> | ||
|
||
<p>Allan CORNET</p> | ||
|
||
<div class = "manualnavbar"> | ||
<table width = "100%"><tr> | ||
|
||
<td width="30%" class="previous"> | ||
<span class="top"><a href="1_accessing_manipulating_table.html"><< Accessing and Manipulating Tables in Nelson</a></span> | ||
</td> | ||
|
||
<td width="40%" class="center"> | ||
<span class="top"><a href="chapter_table.html">Tables</a></span> | ||
</td> | ||
|
||
<td width = "30%" class = "next"> | ||
<span class = "next"><a href = "array2table.html">array2table >></a></span> | ||
</td> | ||
|
||
</tr></table> | ||
<hr /> | ||
|
||
</body> | ||
|
||
</html> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.