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

  • Home
  • SEARCH
  • 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 8011609
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T19:04:10+00:00 2026-06-04T19:04:10+00:00

I have implemented codes in MATLAB that operates on 216×216 matrices that contain numeric

  • 0

I have implemented codes in MATLAB that operates on 216×216 matrices that contain numeric data and sometime strings. The operations that I do on these matrices are mostly like filter matrices above a certain threshold, find all the matrix indexes that are above some value, Find a list of values above say X and then find consecutive differences between them, some string replace manipulations. Do matrix dot products etc. I need to access thousands of files to generate these matrices(dlmread I use in MATLAB).

Now I am in need to implement the above project in any other language that are usually bundled with an OS say Perl, c or python or opensource language.

I did a brief search and found out that python is a good tool for research. Does python has some of these MATLAB equivalents for matrix operations ( like read a file directly into an array, find, dlmwrite etc )

Because my codes already have a lot of loops without these MATLAB functions the codes would get much messier and difficult to maintain.

Or could you point out any other alternatives. I am familiar with little Perl but not python or R.

  • 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-04T19:04:12+00:00Added an answer on June 4, 2026 at 7:04 pm

    Start with this page comparing NumPy and Matlab.

    Here are some examples regarding your post:

    In [5]: import scipy
    
    In [6]: X = scipy.randn(3,3)
    
    In [7]: X
    Out[7]: 
    array([[-1.16525755,  0.04875437, -0.91006082],
           [ 0.00703527,  0.21585977,  0.75102583],
           [ 1.12739755,  1.12907917, -2.02611163]])
    
    In [8]: X>0
    Out[8]: 
    array([[False,  True, False],
           [ True,  True,  True],
           [ True,  True, False]], dtype=bool)
    
    In [9]: scipy.where(X>0)
    Out[9]: (array([0, 1, 1, 1, 2, 2]), array([1, 0, 1, 2, 0, 1]))
    
    In [10]: X[X>0] = 99
    
    In [11]: X
    Out[11]: 
    array([[ -1.16525755,  99.        ,  -0.91006082],
           [ 99.        ,  99.        ,  99.        ],
           [ 99.        ,  99.        ,  -2.02611163]])
    
    In [12]: Y = scipy.randn(3,2)
    
    In [13]: scipy.dot(X, Y)
    Out[13]: 
    array([[-124.41803568,  118.42995937],
           [-368.08354405,  199.67131528],
           [-190.13730231,  161.54715769]])
    

    (Shameless plug: a comparison I once made between Python and Matlab.)

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

Sidebar

Related Questions

First some background: I already have a Result class that I've implemented to carry
I have a problem, not that major problem but since i implemented sendMultipartTextMessage on
i have another problem this time, i'm fetching json codes that will be used
I have a system of stochastic differential equations implemented in MATLAB. Just 4 variables
I have a problem that is driving me nuts. Matlab sees only some of
I have implemented an autocomplete in my app for zip codes. I am debugging
I have thousands of lines of MATLAB code that realizes different computationally intensive operations
I have designed a circuit that can record data and simultaneously sends data using
I have these codes on my controller that gets the inputted value to the
i have implemented code like here but it's not working for iOS 5.0, it

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.