Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: MATALB HELP! Assigning arrays from the workspace to different columns of the data table!
Date: Sat, 11 Jun 2011 15:11:05 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 11
Message-ID: <it00i9$4n1$1@newscl01ah.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: www-01-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: newscl01ah.mathworks.com 1307805065 4833 172.30.248.46 (11 Jun 2011 15:11:05 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sat, 11 Jun 2011 15:11:05 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 2248607
Xref: news.mathworks.com comp.soft-sys.matlab:731470

Hello! I am trying to assign arrays of multiple integers (increase by row) to different columns of my data table. I tried to use the following code to call the arrays from the workspace and assign each array to different columns as the row keeps incrementing. However, I get an error stating a dimension mismatch. I know I am missing someting very important here but I do not know what!  PLEASE HELP AND THANK YOU IN ADVANCE!

        %Call arrays from the workspace
        result(handles.n,1) = evalin('base','Frequency');
        result(handles.n,2) = evalin('base','Speed');
        result(handles.n,3) = evalin('base','Torque');
        result(handles.n,4) = evalin('base','Input_Power');
        result(handles.n,5) = evalin('base','Output_Power');
        result(handles.n,6) = evalin('base','Efficiency');
        %Assign the matrix to the workspace 
        assignin('base', 'Results');