http://nl.mathworks.com/matlabcentral/newsreader/view_thread/289900
MATLAB Central Newsreader  making a table
Feed for thread: making a table
enus
©19942017 by MathWorks, Inc.
webmaster@mathworks.com
MATLAB Central Newsreader
http://blogs.law.harvard.edu/tech/rss
60
MathWorks
http://nl.mathworks.com/images/membrane_icon.gif

Sun, 22 Aug 2010 22:27:06 +0000
making a table
http://nl.mathworks.com/matlabcentral/newsreader/view_thread/289900#773530
J G
Is it possible to have output data directly entered into a table? I have a loop which produces a series of vectors (one for every time the loop is run), eg.<br>
<br>
1 2 3 4<br>
<br>
5 6 7 8<br>
<br>
etc. lets say for 100 times, and I would like this to be directly entered into a table every time the loop spits out another vector (the same table), ie. with 4 columns, 100 rows.

Sun, 22 Aug 2010 22:51:42 +0000
Re: making a table
http://nl.mathworks.com/matlabcentral/newsreader/view_thread/289900#773534
dpb
J G wrote:<br>
> Is it possible to have output data directly entered into a table? I <br>
> have a loop which produces a series of vectors (one for every time the <br>
> loop is run), eg.<br>
> <br>
> 1 2 3 4<br>
> <br>
> 5 6 7 8<br>
> <br>
> etc. lets say for 100 times, and I would like this to be directly <br>
> entered into a table every time the loop spits out another vector (the <br>
> same table), ie. with 4 columns, 100 rows. <br>
<br>
Assuming a "table" is simply a 2D array (matrix)<br>
<br>
x = zeros(100,4);<br>
for idx = 1:length(x)<br>
x(idx,:) = your_function_output(whatever_its_input);<br>
end<br>
<br>


Sun, 22 Aug 2010 23:09:16 +0000
Re: making a table
http://nl.mathworks.com/matlabcentral/newsreader/view_thread/289900#773536
Walter Roberson
On 22/08/10 5:27 PM, J G wrote:<br>
> Is it possible to have output data directly entered into a table? I<br>
> have a loop which produces a series of vectors (one for every time the<br>
> loop is run), eg.<br>
><br>
> 1 2 3 4<br>
><br>
> 5 6 7 8<br>
><br>
> etc. lets say for 100 times, and I would like this to be directly<br>
> entered into a table every time the loop spits out another vector (the<br>
> same table), ie. with 4 columns, 100 rows.<br>
<br>
In MATLAB, "table" is used with respect to several technologies that are <br>
internally quite different. Could you be more specific about what you <br>
are wanting to do? For example, is this a question about uitable, or is <br>
it a question about connecting to an SQL server?

Sun, 22 Aug 2010 23:21:05 +0000
Re: making a table
http://nl.mathworks.com/matlabcentral/newsreader/view_thread/289900#773543
J G
Sorry, I meant a uitable. Thanks

Sun, 22 Aug 2010 23:42:04 +0000
Re: making a table
http://nl.mathworks.com/matlabcentral/newsreader/view_thread/289900#773549
Walter Roberson
On 22/08/10 6:21 PM, J G wrote:<br>
> Sorry, I meant a uitable. Thanks<br>
<br>
Please see <br>
<a href="http://www.mathworks.com/matlabcentral/newsreader/view_thread/281187">http://www.mathworks.com/matlabcentral/newsreader/view_thread/281187</a> for <br>
information on doing direct uitable updates.<br>
<br>
You might have some logistic difficulties with respect to the entries <br>
that you have not really initialized yet.