Email: [email protected]

This Portal for internal use only!

  • My Download
  • Checkout
Application Package Repository Telkom University
All Categories

All Categories

  • IBM
  • Visual Paradigm
  • Adobe
  • Google
  • Matlab
  • Microsoft
    • Microsoft Apps
    • Analytics
    • AI + Machine Learning
    • Compute
    • Database
    • Developer Tools
    • Internet Of Things
    • Learning Services
    • Middleware System
    • Networking
    • Operating System
    • Productivity Tools
    • Security
    • VLS
      • Office
      • Windows
  • Opensource
  • Wordpress
    • Plugin WP
    • Themes WP
  • Others

Search

0 Wishlist

Cart

Categories
  • Microsoft
    • Microsoft Apps
    • Office
    • Operating System
    • VLS
    • Developer Tools
    • Productivity Tools
    • Database
    • AI + Machine Learning
    • Middleware System
    • Learning Services
    • Analytics
    • Networking
    • Compute
    • Security
    • Internet Of Things
  • Adobe
  • Matlab
  • Google
  • Visual Paradigm
  • WordPress
    • Plugin WP
    • Themes WP
  • Opensource
  • Others
More Categories Less Categories
  • Get Pack
    • Product Category
    • Simple Product
    • Grouped Product
    • Variable Product
    • External Product
  • My Account
    • Download
    • Cart
    • Checkout
    • Login
  • About Us
    • Contact
    • Forum
    • Frequently Questions
    • Privacy Policy
  • Forum
    • News
      • Category
      • News Tag

iconTicket Service Desk

  • My Download
  • Checkout
Application Package Repository Telkom University
All Categories

All Categories

  • IBM
  • Visual Paradigm
  • Adobe
  • Google
  • Matlab
  • Microsoft
    • Microsoft Apps
    • Analytics
    • AI + Machine Learning
    • Compute
    • Database
    • Developer Tools
    • Internet Of Things
    • Learning Services
    • Middleware System
    • Networking
    • Operating System
    • Productivity Tools
    • Security
    • VLS
      • Office
      • Windows
  • Opensource
  • Wordpress
    • Plugin WP
    • Themes WP
  • Others

Search

0 Wishlist

Cart

Menu
  • Home
    • Download Application Package Repository Telkom University
    • Application Package Repository Telkom University
    • Download Official License Telkom University
    • Download Installer Application Pack
    • Product Category
    • Simple Product
    • Grouped Product
    • Variable Product
    • External Product
  • All Pack
    • Microsoft
      • Operating System
      • Productivity Tools
      • Developer Tools
      • Database
      • AI + Machine Learning
      • Middleware System
      • Networking
      • Compute
      • Security
      • Analytics
      • Internet Of Things
      • Learning Services
    • Microsoft Apps
      • VLS
    • Adobe
    • Matlab
    • WordPress
      • Themes WP
      • Plugin WP
    • Google
    • Opensource
    • Others
  • My account
    • Download
    • Get Pack
    • Cart
    • Checkout
  • News
    • Category
    • News Tag
  • Forum
  • About Us
    • Privacy Policy
    • Frequently Questions
    • Contact
Home/Matlab/Extract certain data from array where repeats are present (but constant values)

Extract certain data from array where repeats are present (but constant values)

PuTI / 2025-06-23
Extract certain data from array where repeats are present (but constant values)
Matlab News

Hello, I have some data where I my relevant column (Y position) is as this yellow graph

I want to pull out just the data that is between the green arrows – I do know the actual starting and finishing Y positions (101 and 121 respectively) , but there are other values at these values – but they are constant

My data is actually in an array, and the Yposition is column 2, but I delete the 1st column, so the column becomes 1
this was my attempt to remove all rows of my array outside of these green arrows.

% Get user input to the real starting and finishing Y values
prompt = {‘Col:’,’start:’,’finish:’};
dlgtitle = ‘Keep Rows Between’;
dims = [1 35];
definput = {‘1′,’101′,’121’}; % definput = {‘Region:’,num2str(X),num2str(Y)};
answer = inputdlg(prompt,dlgtitle,dims,definput);
col=str2num(answer{1}); low=str2num(answer{2}); high=str2num(answer{3});

% Get Current table data
t=app.UITable;
d=t.Data;

d=rmmissing(d); % One wat Remove Nans

Y=table2array(d);
Y=Y(:,col);

low
head(Y)
class(Y)

% Get index of
idx1=find(Y<=low);
idx2=find(Y>=high);
size(idx1)
size(idx2)
id=[idx1;idx2];

d(id,:)=[];
t.Data=d;
However, this keeps all values not just within the greena rrows.
I have included my dataHello, I have some data where I my relevant column (Y position) is as this yellow graph

I want to pull out just the data that is between the green arrows – I do know the actual starting and finishing Y positions (101 and 121 respectively) , but there are other values at these values – but they are constant

My data is actually in an array, and the Yposition is column 2, but I delete the 1st column, so the column becomes 1
this was my attempt to remove all rows of my array outside of these green arrows.

% Get user input to the real starting and finishing Y values
prompt = {‘Col:’,’start:’,’finish:’};
dlgtitle = ‘Keep Rows Between’;
dims = [1 35];
definput = {‘1′,’101′,’121’}; % definput = {‘Region:’,num2str(X),num2str(Y)};
answer = inputdlg(prompt,dlgtitle,dims,definput);
col=str2num(answer{1}); low=str2num(answer{2}); high=str2num(answer{3});

% Get Current table data
t=app.UITable;
d=t.Data;

d=rmmissing(d); % One wat Remove Nans

Y=table2array(d);
Y=Y(:,col);

low
head(Y)
class(Y)

% Get index of
idx1=find(Y<=low);
idx2=find(Y>=high);
size(idx1)
size(idx2)
id=[idx1;idx2];

d(id,:)=[];
t.Data=d;
However, this keeps all values not just within the greena rrows.
I have included my data Hello, I have some data where I my relevant column (Y position) is as this yellow graph

I want to pull out just the data that is between the green arrows – I do know the actual starting and finishing Y positions (101 and 121 respectively) , but there are other values at these values – but they are constant

My data is actually in an array, and the Yposition is column 2, but I delete the 1st column, so the column becomes 1
this was my attempt to remove all rows of my array outside of these green arrows.

% Get user input to the real starting and finishing Y values
prompt = {‘Col:’,’start:’,’finish:’};
dlgtitle = ‘Keep Rows Between’;
dims = [1 35];
definput = {‘1′,’101′,’121’}; % definput = {‘Region:’,num2str(X),num2str(Y)};
answer = inputdlg(prompt,dlgtitle,dims,definput);
col=str2num(answer{1}); low=str2num(answer{2}); high=str2num(answer{3});

% Get Current table data
t=app.UITable;
d=t.Data;

d=rmmissing(d); % One wat Remove Nans

Y=table2array(d);
Y=Y(:,col);

low
head(Y)
class(Y)

% Get index of
idx1=find(Y<=low);
idx2=find(Y>=high);
size(idx1)
size(idx2)
id=[idx1;idx2];

d(id,:)=[];
t.Data=d;
However, this keeps all values not just within the greena rrows.
I have included my data find, table2array MATLAB Answers — New Questions

​

Tags: matlab

Share this!

Related posts

Random Forest with paired observations: how to maintain subject separation
2025-07-08

Random Forest with paired observations: how to maintain subject separation

Why is uiaxes small by default in a uifigure?
2025-07-08

Why is uiaxes small by default in a uifigure?

For the trainNetwork function, progress plots for training are not closing, except if done manually. How do I close it? I have tried close all, close force, close(fig), & more
2025-07-08

For the trainNetwork function, progress plots for training are not closing, except if done manually. How do I close it? I have tried close all, close force, close(fig), & more

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Search

Categories

  • Matlab
  • Microsoft
  • News
  • Other
Application Package Repository Telkom University

Tags

matlab microsoft opensources
Application Package Download License

Application Package Download License

Adobe
Google for Education
IBM
Matlab
Microsoft
Wordpress
Visual Paradigm
Opensource

Sign Up For Newsletters

Be the First to Know. Sign up for newsletter today

Application Package Repository Telkom University

Portal Application Package Repository Telkom University, for internal use only, empower civitas academica in study and research.

Information

  • Telkom University
  • About Us
  • Contact
  • Forum Discussion
  • FAQ
  • Helpdesk Ticket

Contact Us

  • Ask: Any question please read FAQ
  • Mail: [email protected]
  • Call: +62 823-1994-9941
  • WA: +62 823-1994-9943
  • Site: Gedung Panambulai. Jl. Telekomunikasi

Copyright © Telkom University. All Rights Reserved. ch

  • FAQ
  • Privacy Policy
  • Term