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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T00:24:54+00:00 2026-06-10T00:24:54+00:00

I have simple question in matlab. I have the equation : A*H=b I know

  • 0

I have simple question in matlab.
I have the equation : A*H=b
I know A and b
I try to use this expression:

H=A\b;

but I get wrong value: example:

       A =

       231   481
       233   488
       241   481
       243   489
b =

    11    31
     6    20
    21    31
    18    22

And I get

H =

    1.1627    0.2713
   -0.5396   -0.0791

so

A*H

ans =

    9.0386   24.6299
    7.5868   24.6189
   20.6659   27.3434
   18.6745   27.2532

This is no b

  • 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-10T00:24:55+00:00Added an answer on June 10, 2026 at 12:24 am

    From typing help slash at the command prompt:

    \ Backslash or left division.

    A\B is the matrix division of A into B, which is roughly the same as
    INV(A)*B , except it is computed in a different way. If A is an N-by-N
    matrix and B is a column vector with N components, or a matrix with
    several such columns, then X = A\B is the solution to the equation A*X
    = B. A warning message is printed if A is badly scaled or nearly singular. A\EYE(SIZE(A)) produces the inverse of A.

    If A is an M-by-N matrix with M < or > N and B is a column vector with M
    components, or a matrix with several such columns, then X = A\B is the
    solution in the least squares sense to the under- or overdetermined
    system of equations A*X = B. The effective rank, K, of A is determined
    from the QR decomposition with pivoting. A solution X is computed
    which has at most K nonzero components per column. If K < N this will
    usually not be the same solution as PINV(A)*B. A\EYE(SIZE(A))
    produces a generalized inverse of A.

    So, the second paragraph applies to your case. In other words, there is no H that can satisfy A*H = b for your problem, but Matlab computes the best approximation to it (in a least-squares sense). So the result you get is correct.

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

Sidebar

Related Questions

A simple question, but I'm not so great with MATLAB. I have vectors x
i have a simple question: i have this var: $v = 24000,1500,1500,1500,1500,1500,; i would
I have a simple question. I'm trying to get a list of the indicators
I have a simple question but was not able to find an answer on
I have a simple question, but can't find the answer that I'm looking for.
I'm a beginner in jQuery area and I have simple question like this :
I'm pretty new to MATLAB and I have a simple question. What if I
I have a simple question yet it's not working out. See this html: <div
I have simple question regarding SQLAlchemy, is it possible to get the rows from
I have a simple question related to one-line programming. First an example: function test(a)

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.