Discussion
Loading...

#Tag

Log in
  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
El Duvelle
El Duvelle
@elduvelle@neuromatch.social  路  activity timestamp 2 weeks ago

Slightly technical coding question, #Matlab to #Python:
What's the simplest way to read a Matlab table in Python?
Or, if that's not possible, what should I convert my Matlab table to so I can read it in python? 馃檹
It's quite a big table with "nested" data i.e. some of the columns contain different-lengths arrays for each row and some contain matrices.

Links I've tried without success:
https://stackoverflow.com/questions/25853840/load-matlab-tables-in-python-using-scipy-io-loadmat (csv doesn't save all the data)
https://pythonguides.com/python-scipy-load-mat-file/ (about reading .mat files but does not seem to work with tables)

Links I haven't tried:
https://www.mathworks.com/help/matlab/matlab_external/use-matlab-tables-and-timetables-in-python.html (I believe this relies on having a working version of Matlab to use Matlab.engine to read the file, which kinds of defeats the purpose)

#Programming #NeuroMethods

Python Guides

How to Load MAT Files in Python SciPy

How to load MATLAB .mat files in Python using SciPy and h5py. This guide covers standard MAT files, HDF5 format, and converting to Pandas DataFrame with examples
Stack Overflow

load matlab tables in python using scipy.io.loadmat

Is it possible to load matlab tables in python using scipy.io.loadmat? What I'm doing: In Matlab: tab = table((1:500)') save('tab.mat', 'tab') In Python: import scipy.io mat = scipy.io.loadmat(...
  • Copy link
  • Flag this post
  • Block
Hacker News
Hacker News
@h4ckernews@mastodon.social  路  activity timestamp 2 months ago

In Defense of Matlab Code

https://runmat.org/blog/in-defense-of-matlab-whiteboard-style-code

#HackerNews #In #Defense #of #Matlab #Code #Matlab #Coding #Best #Practices #Coding #Community #Software #Development #Hacker #News

  • Copy link
  • Flag this post
  • Block
bipolaron
bipolaron
@bipolaron@scholar.social  路  activity timestamp 4 months ago

What is a good plotting tool for making 3D surface graphs? My goal is to explain how if you have a curve

y = A*x^3 + B*exp(sin(3x))

you can graph x vs y but also x vs y vs A to show how varying the parameter shifts the family of curves so you can find a best fit by comparing x and y from data to x and y in your model.

I am pretty sure excel will refuse outright, I have #python I have #mathematica I have #matlab . I am fine coding, just not fidding with 1000 things to make a legible graph.

  • Copy link
  • Flag this post
  • Block
Ulrike Hahn boosted
Fabrizio Musacchio
Fabrizio Musacchio
@pixeltracker@sigmoid.social  路  activity timestamp 7 months ago

馃馃捇 A team from the Mind, Brain and Behavior Research Center (CIMCYC, cimcyc.bsky.social) published a #programming guide aimed at students in #psychology and #cognitive #neuroscience. This evolving set of #tutorials offers a curated collection of conceptual reflections, practical examples, and methodological recommendations. The material is available in #Python, #RStats, and #MATLAB.

馃實 https://wobc.github.io/programming_book/
#CognitiveScience #OpenScience

Sorry, no caption provided by author
Sorry, no caption provided by author
Sorry, no caption provided by author
  • Copy link
  • Flag this post
  • Block
Fabrizio Musacchio
Fabrizio Musacchio
@pixeltracker@sigmoid.social  路  activity timestamp 7 months ago

馃馃捇 A team from the Mind, Brain and Behavior Research Center (CIMCYC, cimcyc.bsky.social) published a #programming guide aimed at students in #psychology and #cognitive #neuroscience. This evolving set of #tutorials offers a curated collection of conceptual reflections, practical examples, and methodological recommendations. The material is available in #Python, #RStats, and #MATLAB.

馃實 https://wobc.github.io/programming_book/
#CognitiveScience #OpenScience

Sorry, no caption provided by author
Sorry, no caption provided by author
Sorry, no caption provided by author
  • Copy link
  • Flag this post
  • Block
Alfonso Siciliano
Alfonso Siciliano
@alfonsosiciliano@mastodon.bsd.cafe  路  activity timestamp 8 months ago

Just discovered the true meaning of the name Alfonso, straight outta North Carolina:
Alfonso = ALgorithm FOr Non-Symmetric Optimization 馃槃 馃榿 馃槅
Source: https://github.com/dpapp-github/alfonso

#Onomastics #name #algorithm #matlab #optimization #joke #sunday #weekend

GitHub

GitHub - dpapp-github/alfonso: alfonso: ALgorithm For Non-Symmetric Optimization

alfonso: ALgorithm For Non-Symmetric Optimization. Contribute to dpapp-github/alfonso development by creating an account on GitHub.
  • Copy link
  • Flag this post
  • Block

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About 路 Code of conduct 路 Privacy 路 Users 路 Instances
Bonfire social 路 1.0.2-alpha.34 no JS en
Automatic federation enabled
Log in
Instance logo
  • Explore
  • About
  • Members
  • Code of Conduct