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 8923019
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T06:59:47+00:00 2026-06-15T06:59:47+00:00

I got a data of safety factor and its corresponding force, I wan to

  • 0

I got a data of safety factor and its corresponding force, I wan to make it like prompting and asking ”what is the safety factor?’ then the user will enter the value of safety factor and I wan an output displays the corresponding force in the data table

thx for any help.

  • 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-06-15T06:59:48+00:00Added an answer on June 15, 2026 at 6:59 am

    Since you want to search a value in first column and print the corresponding value from second column you can do something like this:

    ri = find(A(:,1) == y);
    z = A(ri,2);
    

    This assumes that you will always find the corresponding value of y in first column of A. If that is not the case, you need to modify the code:

    ri = find(A(:,1) == y);
    if isempty(ri)            % value not found
        % code to print error message 
        % or
        % code interpolate between given values 
    else
        z = A(ri,2);
    end
    

    you can also use try-catch block instead of if-else statement.

    Interpolation can be bit trick as you need to model it correctly. It is still much easier to interpolate than extrapolate.
    Assuming your the values in first column are arranged in increasing or decreasing order, you can use interp1 as follows, for first order interpolation,

    z = interp1( A(:,1), A(:,2) , y);

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I got data like this: ӘІҢҒҮҰҚӨҺ. hexing this data to this: d398d086d2a2d292d2aed2b0d29ad3a8d2ba then adding
I've got data where I'm counting episodes of care (like ER visits). The trick
I've got a data frame with 2 character columns. I'd like to find the
I've got data with X values from 0 to 55. I would like to
first I got JSON data via web server just like $.getJSON(url,function(){ //my callback function;
I've got data being sent from a client side which is sending it like
I've got a data structure like this in a loop, the content of the
I've got data in SQL Server 2005 that contains HTML tags and I'd like
i got some data like this line 1 \n line 2 from my distant
I've got a data frame that I read from a file like this: name,

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.