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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T23:47:58+00:00 2026-06-02T23:47:58+00:00

I wanna create basic matlab program that normalizes given array of integer in the

  • 0

I wanna create basic matlab program that normalizes given array of integer in the given range.

  • Inputs are an array [ a1 , a2 , a3 , a4 , a5 , a6 , a7… ], and the range [ x , y ]
  • Output is normalized array.

But in everywhere, i see the normalization in the range of [0,1] or [-1,1]. Can’t find variable range normalization.
I will be grateful if you write the matlab code or the formula for variable range.

Thank you for ideas.

  • 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-02T23:47:59+00:00Added an answer on June 2, 2026 at 11:47 pm

    If you want to normalize to [x, y], first normalize to [0, 1] via:

     range = max(a) - min(a);
     a = (a - min(a)) / range;
    

    Then scale to [x,y] via:

     range2 = y - x;
     a = (a * range2) + x;
    

    Putting it all together:

     function normalized = normalize_var(array, x, y)
    
         % Normalize to [0, 1]:
         m = min(array);
         range = max(array) - m;
         array = (array - m) / range;
    
         % Then scale to [x,y]:
         range2 = y - x;
         normalized = (array*range2) + x;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I wanna create a global object in cpp program, how do I do that?
I wanna create an array of cities that are stored in the database Cities
Can I check with you guys if I wanna create an app that can
I wanna create a Boolean field in my oracle table but I seen there
I wanna to create chat program, messages can be displayed in a different ways,
I wanna create Contextual Tab using Webpart In Sandbox Solution..that time I am getting
I have a question but dont have a answer, i wanna create a application
I wanna create queue management system (for bank, hostpital...) Something like that There will
Okay so I wanna create an iPhone app that communicates with a WEB Service.
What I wanna create is page that fetches results from my DB and display

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.