hi for all ... please i need help . i am using uitable and i need to search between row and column .. such as i need to search in row (1) and column (3) in same time and i got the intersection of row and column
thanks for all

2 comentarios

Geoff Hayes
Geoff Hayes el 18 de En. de 2015
Mays - you may want to provide an example of what you are trying to do. I understand the table, but it isn't that clear what you mean by needing to search in the first row and third column for the intersection (?). Please elaborate.
mays afif
mays afif el 20 de En. de 2015
i have a table contain a hexadecimal data and the row&column numbered (0,1,2,...A,B,C,D,E,F) .and i need a help to search in this table when i using uitable
such as i need the value of row number(2) and column number (A)

Iniciar sesión para comentar.

 Respuesta aceptada

Image Analyst
Image Analyst el 19 de En. de 2015

0 votos

Get the data from the table like this
data = get(handles.uitable1, 'data');
Then to get the contents of the grid at the point where row 1 and column 3 intersect, simply do this:
theValue = data(1, 3);

4 comentarios

mays afif
mays afif el 20 de En. de 2015
please i am sorry for bothering ... can you tell me how can i make a new table contain mix data type and how searching between row & column ... please i have a problem when making table ... thaks
mays afif
mays afif el 20 de En. de 2015
function varargout = fig1(varargin) % FIG1 MATLAB code for fig1.fig % FIG1, by itself, creates a new FIG1 or raises the existing % singleton*. % % H = FIG1 returns the handle to a new FIG1 or the handle to % the existing singleton*. % % FIG1('CALLBACK',hObject,eventData,handles,...) calls the local % function named CALLBACK in FIG1.M with the given input arguments. % % FIG1('Property','Value',...) creates a new FIG1 or raises the % existing singleton*. Starting from the left, property value pairs are % applied to the GUI before fig1_OpeningFcn gets called. An % unrecognized property name or invalid value makes property application % stop. All inputs are passed to fig1_OpeningFcn via varargin. % % *See GUI Options on GUIDE's Tools menu. Choose "GUI allows only one % instance to run (singleton)". % % See also: GUIDE, GUIDATA, GUIHANDLES
% Edit the above text to modify the response to help fig1
% Last Modified by GUIDE v2.5 20-Jan-2015 14:33:41
% Begin initialization code - DO NOT EDIT gui_Singleton = 1; gui_State = struct('gui_Name', mfilename, ... 'gui_Singleton', gui_Singleton, ... 'gui_OpeningFcn', @fig1_OpeningFcn, ... 'gui_OutputFcn', @fig1_OutputFcn, ... 'gui_LayoutFcn', [] , ... 'gui_Callback', []); if nargin && ischar(varargin{1}) gui_State.gui_Callback = str2func(varargin{1}); end
if nargout [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:}); else gui_mainfcn(gui_State, varargin{:}); end % End initialization code - DO NOT EDIT
% --- Executes just before fig1 is made visible. function fig1_OpeningFcn(hObject, eventdata, handles, varargin) % This function has no output args, see OutputFcn. % hObject handle to figure % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % varargin command line arguments to fig1 (see VARARGIN)
% Choose default command line output for fig1 handles.output = hObject;
% Update handles structure guidata(hObject, handles);
% UIWAIT makes fig1 wait for user response (see UIRESUME) % uiwait(handles.figure1);
% --- Outputs from this function are returned to the command line. function varargout = fig1_OutputFcn(hObject, eventdata, handles) % varargout cell array for returning output args (see VARARGOUT); % hObject handle to figure % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA)
% Get default command line output from handles structure varargout{1} = handles.output;
mays afif
mays afif el 20 de En. de 2015
didn't know how can i search in this table
Image Analyst
Image Analyst el 20 de En. de 2015

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Data Type Identification en Centro de ayuda y File Exchange.

Etiquetas

Aún no se han introducido etiquetas.

Preguntada:

el 18 de En. de 2015

Comentada:

el 20 de En. de 2015

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by