|
| 1 | +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" |
| 2 | +"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
| 3 | + |
| 4 | +<html xmlns = "http://www.w3.org/1999/xhtml"> |
| 5 | +<!-- |
| 6 | +SAME AS NELSON SOFTWARE |
| 7 | +--> |
| 8 | + |
| 9 | +<head> |
| 10 | +<meta name="generator" content= |
| 11 | +"HTML Generated by Nelson"/> |
| 12 | +<link rel="stylesheet" type="text/css" href="style.css" /> |
| 13 | +<link rel="stylesheet" href="mono-blue.css" type="text/css" /> |
| 14 | +<script src = "highlight.pack.js" type = "text/javascript"> |
| 15 | +</script> |
| 16 | +<script type = "text/javascript">hljs.initHighlightingOnLoad();</script> |
| 17 | +</script> |
| 18 | + <meta http-equiv="Content-Type" content = "text/html; charset=utf-8" /> |
| 19 | + <title>append</title> |
| 20 | + |
| 21 | +</head> |
| 22 | +<body> |
| 23 | + |
| 24 | +<div class = "manualnavbar"> |
| 25 | +<table width = "100%"><tr> |
| 26 | + |
| 27 | +<td width="40%" class="center"> |
| 28 | +<span class="top"><a href="chapter_string.html">string type</a></span> |
| 29 | +</td> |
| 30 | + |
| 31 | +<td width = "30%" class = "next"> |
| 32 | +<span class = "next"><a href = "blanks.html">blanks >></a></span> |
| 33 | +</td> |
| 34 | + |
| 35 | +</tr></table> |
| 36 | +<hr /> |
| 37 | + |
| 38 | +<h1 class="refname">append</h1> |
| 39 | +<hr/> |
| 40 | + |
| 41 | +<h3>combines strings horizontally.</h3> |
| 42 | +<hr/> |
| 43 | + |
| 44 | +<h3>Syntax</h3> |
| 45 | +<hr/> |
| 46 | + |
| 47 | +<table summary="syntax" style="width:50%"> |
| 48 | + <tr> |
| 49 | + <td>res = append(s1, s2, ..., sN)</td> |
| 50 | + </tr> |
| 51 | + |
| 52 | +</table> |
| 53 | + |
| 54 | +<h3>Input argument</h3> |
| 55 | +<hr/> |
| 56 | + |
| 57 | +<dl> |
| 58 | +<dt><span class="term">s1, s2, ..., sN</span></dt> |
| 59 | +<dd> |
| 60 | +<p class="para">a string, string array or cell of strings.</p> |
| 61 | +</dd> |
| 62 | + |
| 63 | +</dl> |
| 64 | + |
| 65 | +<h3>Output argument</h3> |
| 66 | +<hr/> |
| 67 | + |
| 68 | +<dl> |
| 69 | +<dt><span class="term">res</span></dt> |
| 70 | +<dd> |
| 71 | +<p class="para">a string, string array or cell of strings.</p> |
| 72 | +</dd> |
| 73 | + |
| 74 | +</dl> |
| 75 | + |
| 76 | +<h3>Description</h3> |
| 77 | +<hr/> |
| 78 | + |
| 79 | +<p></p> |
| 80 | + |
| 81 | + <p><b>strcat</b> combines strings horizontally.</p> |
| 82 | + <p>If all inputs are character arrays, then <b>res</b> is a character array.</p> |
| 83 | + <p>If any input is a string array, then the <b>res</b> is a string array.</p> |
| 84 | + <p>If any input is a cell array, and none are string arrays, then <b>res</b> is a cell array of character vectors.</p> |
| 85 | + <p><b>append</b> does not remove trailing white space.</p> |
| 86 | + |
| 87 | + |
| 88 | +<h3>Example</h3> |
| 89 | +<hr/> |
| 90 | + |
| 91 | +<pre> |
| 92 | +<code class = "nelson">append("Nelson", 'nelSon') |
| 93 | +A = {'abcde','fghi'}; |
| 94 | +B = {'jkl','mn'}; |
| 95 | +C = append(A, B) |
| 96 | +</code> |
| 97 | +</pre> |
| 98 | + |
| 99 | +<h3>See also</h3> |
| 100 | +<hr/> |
| 101 | + |
| 102 | +<p> |
| 103 | +<a href = "strcat.html" class = "link">strcat</a>.</p> |
| 104 | + |
| 105 | +<h3>History</h3> |
| 106 | +<hr/> |
| 107 | + |
| 108 | +<table summary = "history" style="width:50%"> |
| 109 | +<tr> |
| 110 | + <th>Version</th> |
| 111 | + <th>Description</th> |
| 112 | +</tr> |
| 113 | +<tr> |
| 114 | + <td>1.0.0</td> |
| 115 | + <td>initial version</td> |
| 116 | +</tr> |
| 117 | + |
| 118 | +</table> |
| 119 | + |
| 120 | +<h3>Author</h3> |
| 121 | +<hr/> |
| 122 | + |
| 123 | +<p>Allan CORNET</p> |
| 124 | + |
| 125 | +<div class = "manualnavbar"> |
| 126 | +<table width = "100%"><tr> |
| 127 | + |
| 128 | +<td width="40%" class="center"> |
| 129 | +<span class="top"><a href="chapter_string.html">string type</a></span> |
| 130 | +</td> |
| 131 | + |
| 132 | +<td width = "30%" class = "next"> |
| 133 | +<span class = "next"><a href = "blanks.html">blanks >></a></span> |
| 134 | +</td> |
| 135 | + |
| 136 | +</tr></table> |
| 137 | +<hr /> |
| 138 | + |
| 139 | +</body> |
| 140 | + |
| 141 | +</html> |
| 142 | + |
0 commit comments