Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7006481
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T21:29:00+00:00 2026-05-27T21:29:00+00:00

In Matlab, I have a vector, X, that contains N real values: 0.001 0.003

  • 0

In Matlab, I have a vector, X, that contains N real values:

  • 0.001
  • 0.003
  • 0.006
  • 0.009
  • 0.007
  • 0.006

I would like to create a new vector, Xb, that contains all the M values of X that are less than 0.005 (M <= N).
How could I do it?

I’ve tried with:

Xb = X<0.005

but it gives me a vector of N values 0s or 1s.

Thanx

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T21:29:01+00:00Added an answer on May 27, 2026 at 9:29 pm
    >> Xb = X(X < 0.005)
    
    Xb =
    
        0.0010    0.0030
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Matlab program that is running longer than I'd like it to.
I have multiple vectors of varying lengths that I would like to plot next
I have a vector like the following in Matlab. Columns 1 through 4 0.160000000000000
Say in Matlab I have a matrix like this: 1 2 3 4 5
I have a Matlab function that creates a cell array with matrixes inside. It
I have a Matlab program that generates a list x = 6.1692 8.1863 5.8092
I have a matlab GUI....I'd like to load ANY file type(doc,txt,dat,xls) into matlab as
I have a matlab script, lets call it master.m, that loads a file called
I have a MATLAB function that finds charateristic points in a sample. Unfortunatley it
I have 2 example vector in Matlab : A = [5,3,3,0,4,1,5,0,2,5,5,0,5,3,4,0,1,4,4,0,4,2]; B = [1,0,0,0,1,0,4,0,0,0,0,4,4,0,1,0,0,0,0,0,0,0];

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.