A MATLAB-compatible option for engineering calculations
MATLAB is good at numerical code. A calculation report is a different job: units that are checked, formulas a reviewer can read, results that are tied to the inputs, a document to hand over. CivilKit Calcs does the second job and now runs MATLAB-language code in the same sheet, so the numerical part and the report live in one file.
It is not a replacement for MATLAB, and this page is about where each fits.
Open this sheet in Calcs Open a blank sheet
What overlaps
- Matrices and linear algebra: solve, eigenvalues, decompositions, sparse systems.
- Numerical methods: roots, integration, interpolation, optimisation, ordinary differential equations, FFT and filtering.
- Plots: 2-D plots and 3-D surfaces, contours and images.
- Programming: functions, recursion, structures, cell arrays, strings, tables, maps, error handling.
The sample sheets show beam diagrams, a frame eigenproblem, a damped oscillator, a plate surface and a symbolic beam derivation, each written as a MATLAB block with Calcpad lines checking it.
What the sheet adds
- Quantities with units on the lines after the block, converted and checked by the engine.
- A report with formulas typeset as maths, exportable to Word, Excel and PDF.
- Input forms, so someone who does not write code can change a value and see the result.
- No install: the sheet runs in a browser and works offline once it has loaded. The code stays on your machine.
What MATLAB or Octave still does better
- Speed on loop-heavy code. In the browser loops run at interpreter speed.
- Toolboxes, Simulink, apps,
classdefprogramming and the long tail of functions. Not here. - Exact behaviour on edge cases. This engine is independent and tested against known values, not against MATLAB itself.
- Large data and long runs. A block is limited to 20 seconds, or 120 if you agree.
A sensible split: do the heavy lifting in MATLAB or Octave if you have them, and use the sheet when the result has to sit in a reviewed calculation with units, or when you do not have a licence to hand. Code written in a block can be saved back out as ordinary .m files.
MATLAB is a trademark of The MathWorks, Inc. CivilKit Calcs is not made by, affiliated with or endorsed by The MathWorks. The name is used here only to say which language the code is written in.
Questions
Can I use it instead of MATLAB?
For scripts built on the core language and common numerical functions, often yes. For toolboxes, Simulink, apps and classdef code, no. Try your own script before you commit to it.
Will my existing .m files run?
Many will. Open the file, or put function files in the library. The errors name the missing function or the line that failed, so you can see quickly whether yours is in scope.
How is it different from Octave?
Octave is a full, mature language implementation for the desktop. This runs in a browser tab, inside a calculation sheet with units and reports, and covers less of the language.
Is it affiliated with MathWorks?
No. MATLAB is a trademark of The MathWorks, Inc.