i want to visualise the data between different fields in which i have a data base which ontains for example DOB and a policy start date and time base which ontains for example DOB and a policy start date and time ?

 Respuesta aceptada

Durganshu
Durganshu el 16 de Oct. de 2020

0 votos

You can use plot or scatter for 2D comparison.If you want a 3D comparison, you can use surf for that. MATLAB has a lot of visualizaton tools and techniques. Please elaborate on what kind of visualization you want.

3 comentarios

sushanth vanamala
sushanth vanamala el 21 de Oct. de 2020
I want in 2D but the database which i have it contains DOB and some policy created date and time.so,i need people who are above 50 years and who created the policy before 12pm. thanks
Durganshu
Durganshu el 21 de Oct. de 2020
Editada: Durganshu el 21 de Oct. de 2020
I assume you have 4 columns:
name = data(:,1);
DOB = data(:,2);
Date = data(:,3);
Time = data(:,4);
% Now create a sub-matrix that contains information for people who have policy time< 12
logicalmatrix = data(:,4)<12 % this will return logical values (1 or 0) for all the values smaller then 12 pm in column 4
data1=data(:,:).*logicalMatrix; % this will put all the non-required values as 0;
data1( ~any(data1~=0,2), : ) = []; %this will remove all the rows that contain non-required values
plot(data1); %or whichever columns you want to plot
Hope that helps!
sushanth vanamala
sushanth vanamala el 1 de Dic. de 2020
thank you so much

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Agriculture en Centro de ayuda y File Exchange.

Preguntada:

el 15 de Oct. de 2020

Comentada:

el 1 de Dic. de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by