Matlab Runtime Library

Matlab Runtime Library - Consists of approximately 400 Matlab math functions - Messages

#81 Posted: 8/20/2019 6:57:04 AM
Вячеслав Мезенцев

Вячеслав Мезенцев

1,432 likes in 1,747 posts.

Group: Moderator

As I see, we can use Matlab Runtime instead of current solution. Using it, we can get a 64-bit version of the plugin.
Russia ☭ forever, Viacheslav N. Mezentsev
1 users liked this post
frapuano 8/20/2019 9:53:00 AM
#82 Posted: 1/8/2022 11:25:51 PM
Вячеслав Мезенцев

Вячеслав Мезенцев

1,432 likes in 1,747 posts.

Group: Moderator

SMath Studio compatibility Platform

Plugin updated. Only the 32-bit version is available.

Changes:

- plugin renamed to Matlab Runtime Library;
- converting the task for the ODE solvers to the numerical form is now performed through the Mathcad Toolbox plugin (to avoid code duplication), so it must be installed;
- totally refactored.

2022-01-09_07-23-19.png
Russia ☭ forever, Viacheslav N. Mezentsev
#83 Posted: 1/10/2022 5:29:42 AM
Andrey

Andrey

1 likes in 44 posts.

Group: User

Dear Viacheslav,

thank you for the plugin.
Can I ask a quick question?
Does it work only with the older version?
By me, unfortunately, this plugin is not accessible.

Test_MatlabRT.PNG

Best regards,
Andrey
#84 Posted: 1/10/2022 5:41:40 AM
Вячеслав Мезенцев

Вячеслав Мезенцев

1,432 likes in 1,747 posts.

Group: Moderator

Wrote

Does it work only with the older version?
By me, unfortunately, this plugin is not accessible.


You need to switch the program to 32-bit mode. This is an old library and didn't exist at that time in 64-bit form. That is why I additionally pointed it out.
You must manually change the bitness of the executable file in administrator mode. After that, the library will become available.

2022-01-10_13-47-45.png

2020-05-30_03-04-23.png

CorFlags will help you to use this plugin on 64-bit system.

32-bit ON: CorFlags /32bit+ Solver.exe or CorFlags /32bit+ SMathStudio_Desktop.exe
32-bit OFF: CorFlags /32bit- Solver.exe or CorFlags /32bit- SMathStudio_Desktop.exe

CorFlags.zip (141 KiB) downloaded 165 time(s).

2022-01-10_13-38-01.png
Russia ☭ forever, Viacheslav N. Mezentsev
3 users liked this post
Davide Carpi 1/11/2022 7:07:00 AM, Andrey Ivashov 1/11/2022 3:28:00 PM, Oscar Campo 10/14/2022 8:52:00 AM
#85 Posted: 1/11/2022 5:53:20 AM
Andrey

Andrey

1 likes in 44 posts.

Group: User

Hallo Viacheslav,

thnak you for your help and your quick reply!

Best regards,
Andrey
#86 Posted: 10/14/2022 2:10:58 PM
Oscar Campo

Oscar Campo

124 likes in 298 posts.

Group: Moderator

Wrote

As I see, we can use Matlab Runtime instead of current solution. Using it, we can get a 64-bit version of the plugin.



Hi,
Any news of using this runtime on 64 bits version?
#87 Posted: 10/14/2022 4:35:37 PM
Вячеслав Мезенцев

Вячеслав Мезенцев

1,432 likes in 1,747 posts.

Group: Moderator

It differs in structure and I can't find examples of how to use it separately from matlab. In addition, the size of the distribution is much larger.
I will have to start all over again for the new version of matlab engine.
Russia ☭ forever, Viacheslav N. Mezentsev
1 users liked this post
Oscar Campo 10/14/2022 5:07:00 PM
#88 Posted: 7/28/2025 7:32:42 AM
Вячеслав Мезенцев

Вячеслав Мезенцев

1,432 likes in 1,747 posts.

Group: Moderator

Deepseek advised how to use a 32-bit application in a 64-bit environment. It will be slower, but practically possible. If desired, it will be possible to connect the old engine. ODE solvers will also work. The slowdown will be due to the fact that the interaction interface will be string-based, but it is better than nothing.

image.png
Russia ☭ forever, Viacheslav N. Mezentsev
1 users liked this post
Alvaro Diaz Falconi 7/28/2025 8:23:50 AM
#89 Posted: 7/28/2025 8:30:23 AM
Alvaro Diaz Falconi

Alvaro Diaz Falconi

1,019 likes in 1,692 posts.

Group: User

Hi Viacheslav. What about an interface for Octave? In a simplified version: one that takes a string in SMath in Octave language, and returns either a string, in case there is a symbolic result, or a matrix, if the result is purely numerical. I think this would greatly simplify both the writing of the code and the subsequent handling of the result in SMath.

As examples of handling Octave from C#, you can use https://github.com/apaka/octave-sharp or https://www.codeproject.com/Articles/342007/OctaveSharp-Running-GNU-Octave-with-Csharp

Best regards.
Alvaro.
Edited 7/28/2025 8:31:09 AM
#90 Posted: 7/28/2025 11:25:58 AM
Вячеслав Мезенцев

Вячеслав Мезенцев

1,432 likes in 1,747 posts.

Group: Moderator

For matlab there is a detailed programmer's guide, which describes the set of functions, their parameters and return values. It is clear how to implement it, but for other programs you need to make a special parser, as it is done for maple and maxima, which is more difficult.

MATLAB C++ Math Library. Reference. Version 2.pdf
Russia ☭ forever, Viacheslav N. Mezentsev
#91 Posted: 7/28/2025 11:31:06 AM
Вячеслав Мезенцев

Вячеслав Мезенцев

1,432 likes in 1,747 posts.

Group: Moderator

Wrote

As examples of handling Octave from C#, you can use https://github.com/apaka/octave-sharp


This code can be automatically converted into a SMath plugin using AI.
Russia ☭ forever, Viacheslav N. Mezentsev
#92 Posted: 7/28/2025 11:51:08 AM
Alvaro Diaz Falconi

Alvaro Diaz Falconi

1,019 likes in 1,692 posts.

Group: User

Hi. Maybe something like octave(string, A, B, C, ...) where string is the octave code, as string itself or the description in a variable. The code can include the smath variables in#1, in#2, in#3, ... which would be replaced by SMath variables A, B, C, ... Like in Mathcad matlab component, but with the sharp, so you can just make the subs with an strreplace instruction.

For simplicity, the result of the octave function would always be a single matrix, perhaps with some symbolic result, but always a matrix.

Finally, just as was implemented with Maxima, you can download a version of Octave for the user if the function don't find one already installed, as it is open source and does not require a special license to install silently.

Best regards.
Alvaro
Edited 7/28/2025 11:54:17 AM
#93 Posted: 7/28/2025 4:29:43 PM
Вячеслав Мезенцев

Вячеслав Мезенцев

1,432 likes in 1,747 posts.

Group: Moderator

If the expression must be entered by the user and is not known in advance, then the following format can be used:

octave( "command({var1},{var2})" )      # var1,var2 - smath variables
This is inconvenient, if you use many functions in a program, then this octave() will be everywhere.

But before this, it is necessary to check whether the specified library works at all.
Edited 7/28/2025 4:33:24 PM
Russia ☭ forever, Viacheslav N. Mezentsev
#94 Posted: 7/28/2025 6:12:16 PM
Alvaro Diaz Falconi

Alvaro Diaz Falconi

1,019 likes in 1,692 posts.

Group: User

The idea is to be able to execute Octave code from SMath using some very specialized function, like ode, pde solvers and others. For get some results that SMath can't yet, Maple and Maxima already exist. So there should only be two or three calls to Octave in a typical spreadsheet.

Like the old "Matlab component" in Mathcad.

image.png

But that would only be a specific proposal; a more general view would likely offer better options.

Regarding the notation, just like the one you ruled out in XYPlot (which was the correct thing to do, by the way), my only observation about the one you use frequently with {} is that SMath uses those brackets as regular parentheses, and I imagine that introduces some complication into the code. I'm more of a strrep-and-see-what-happens-next-way type.

Best regards.
Alvaro.
Edited 7/28/2025 6:19:40 PM
#95 Posted: 7/28/2025 7:33:26 PM
Вячеслав Мезенцев

Вячеслав Мезенцев

1,432 likes in 1,747 posts.

Group: Moderator

You can use an existing method. The octave-cli.exe interpreter must be accessible via known paths.

maple-octave-mode.sm (12 KiB) downloaded 14 time(s).

image.png
Edited 7/28/2025 7:35:49 PM
Russia ☭ forever, Viacheslav N. Mezentsev
2 users liked this post
Alvaro Diaz Falconi 7/29/2025 5:41:44 PM, francesco rapuano 7/30/2025 12:11:31 PM
  • New Posts New Posts
  • No New Posts No New Posts