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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T22:32:40+00:00 2026-06-17T22:32:40+00:00

I have a single line/multi column matrix, multiplied by a square matrix. SAS gives

  • 0

I have a single line/multi column matrix, multiplied by a square matrix. SAS gives me a single line result. So far, from what I remember from college math, and asking people, okay.

But the line from SAS that does it is this one:

fieldA = matrix1`*matrix2[,1:fieldB]

while I understand “fieldA = matrix1`*matrix2”, I have no idea what [,1:fieldB] does, and I can’t seem to find any document that explains it.

  • 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-17T22:32:40+00:00Added an answer on June 17, 2026 at 10:32 pm

    matrix2[,1:fieldB] is subsetting matrix2. It includes all rows of matrix2, and only those columns that are included in the list 1:fieldB. Presumably fieldB identifies the number of columns in matrix1 (which become rows when transposed) so the * works [matrix1' rows must equal matrix2 columns for the operation to be legal].

    For example, imagine matrix1 is the following matrix:

    [1,3,5]
    

    and matrix2 is the following matrix:

    [1,2,3,4,
     4,5,6,7,
     8,9,10,11,
     13,14,15,16]
    

    Now,

    matrix1`*matrix2
    

    is illegal – matrix1` has 3 rows (transposed) and matrix2 has 4 columns. So:

    matrix1`*matrix2[,1:3]
    

    will now be legal, yielding the matrix product of matrix1` by the first 3 columns of matrix2.

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

Sidebar

Related Questions

I have a service request form. A series of textboxes (single and multi line),
I have a ul list which has a few single and some multi-line li
I have a long single-line CSS file that I would like to convert using
I have an html page with a single-line javascript comment as follows: // {key1:value1},
I have a user control which has a DateTimePicker overlaid with the single line
I need to have various text view on a single line. And I want
I'm have a server application, and there is a single line Certificate[] certs =
I have a textfile and on each line is a single word followed by
I have a file (10-20MB) containing data, where each line is a single piece
Ext-js Chart, I have a line graph, and I wish to add a single

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.