A matrix is here
U(35)=9;U(44)=29;A=[-1,1,1;0,-1,0;0,0,-1;1,0,0];blnA = logical( A == -1 );blnOut = find(any(A == -1,2));max(blnOut);negcolumn = find(A(max(blnOut),:) == -1);onerow = find(A(:,negcolumn) == 1);And i just wanna convert that matrix to uitable. Because i need a given row name and column name. f = figure('Position',[10 10 600 600]);dat = {-1,1,1;0,-1,0;0,0,-1;1,0,0};cnames = {'18','29','51'};rnames = {'12','26','35','44'};t = uitable('Parent',f,'Data',dat,'ColumnName',cnames,... 'RowName',rnames,'Position',[10 10 590 590]);max(blnOut)ans = 3
My expected result is 35.
And will use that value 35 like that
U(ans)=?U(35)ans = 9
If i solve it, My whole calculation will be perfect. Please give me your hand
Best Answer