flashman
← All tools

Matlab Array

matlab • simulink • matrix • array

Convert numeric JSON arrays to MATLAB matrix syntax [1 2; 3 4] — handy for Simulink lookup tables, gains, and calibration vectors.

[1 2 3; 4 5 6]

About this tool

Convert JSON numeric arrays to MATLAB matrix literals and back. Built for calibration tables, lookup data, and Simulink workflows where JSON is exchanged but MATLAB executes the model.

Your input is processed in the browser. We do not upload tool payloads to our servers.

Common use cases

  • Paste JSON calibration data into MATLAB scripts.
  • Export Simulink lookup tables to JSON for web tools.
  • Validate array dimensions before mask initialization.

Examples

2D matrix

JSON [[1,2],[3,4]] maps to a MATLAB [1 2; 3 4] style matrix literal.

FAQ

Does it support nested cell arrays?
Focus is on numeric matrices. Complex nesting may need manual adjustment.

Related guide

Bridge JSON configuration and MATLAB matrices or structs for automation and calibration.

Read: MATLAB & Simulink: JSON workflows for engineers