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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T05:12:06+00:00 2026-05-20T05:12:06+00:00

Do you know a matlab script that gets the correlation matrix of a set

  • 0

Do you know a matlab script that gets the correlation matrix of a set of data like numbe of columns=7, and rows = n>>7

 x1      x2      x3      x4     x5     x6      x7 

0.780   2.042   2.754   2.894  5.000  5.000  5.000
0.767   0.816   2.758   2.898  5.000  1.644  1.626
0.816   0.836   1.558   2.124  2.952  5.000  5.000
0.848   0.871   1.588   2.147  2.966  5.000  5.000
1.378   1.620   1.433   2.567  3.268  3.203  5.000
....
  • 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-20T05:12:06+00:00Added an answer on May 20, 2026 at 5:12 am

    Try corrcoef.

    In general, you can find these sort of things immediately by searching the online help, for example via the convenient lookfor command:

    >> lookfor correlation
    corrcoef                       - Correlation coefficients.
    msfuncorr                      - an M-S-function which performs auto- and cross-
    ...
    
    >> help corrcoef
    CORRCOEF Correlation coefficients.
       R=CORRCOEF(X) calculates a matrix R of correlation coefficients for
       an array X, in which each row is an observation and each column is a
       variable.
    

    For instance

    load file.txt
    result= CORRCOEF(file);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm writing a matlab script where I'd like to know the name of the
I write a script in matlab, which produces figures out a set of data.
I know that Matlab allows for you to format the graph after its created
I would like to know how I can record a video in MATLAB with
I am looking for numerical integration with matlab. I know that there is a
Please keep in mind that I know nothing about Matlab. Matlab Builder JA lets
I know that there is the possibility of Matlab of pausing a Matlab function
I'm implementing PCA using eigenvalue decomposition for sparse data. I know matlab has PCA
I'm trying to write a script in MATLAB that finds the location of the
I know that you can create a file browser in Matlab using uigetfile. However,

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.