Matlab Runtime Library

Matlab Runtime Library - Consists of approximately 400 Matlab math functions - Сообщения

#81 Опубликовано: 20.08.2019 06:57:04
Вячеслав Мезенцев

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

1 437 сообщений из 1 747 понравились пользователям.

Группа: 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 пользователям понравился этот пост
frapuano 20.08.2019 09:53:00
#82 Опубликовано: 08.01.2022 23:25:51
Вячеслав Мезенцев

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

1 437 сообщений из 1 747 понравились пользователям.

Группа: 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 Опубликовано: 10.01.2022 05:29:42
Andrey

Andrey

1 сообщений из 44 понравились пользователям.

Группа: 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 Опубликовано: 10.01.2022 05:41:40
Вячеслав Мезенцев

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

1 437 сообщений из 1 747 понравились пользователям.

Группа: 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 КиБ) скачан 165 раз(а).

2022-01-10_13-38-01.png
Russia ☭ forever, Viacheslav N. Mezentsev
3 пользователям понравился этот пост
Davide Carpi 11.01.2022 07:07:00, Andrey Ivashov 11.01.2022 15:28:00, Oscar Campo 14.10.2022 08:52:00
#85 Опубликовано: 11.01.2022 05:53:20
Andrey

Andrey

1 сообщений из 44 понравились пользователям.

Группа: User

Hallo Viacheslav,

thnak you for your help and your quick reply!

Best regards,
Andrey
#86 Опубликовано: 14.10.2022 14:10:58
Oscar Campo

Oscar Campo

124 сообщений из 298 понравились пользователям.

Группа: 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 Опубликовано: 14.10.2022 16:35:37
Вячеслав Мезенцев

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

1 437 сообщений из 1 747 понравились пользователям.

Группа: 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 пользователям понравился этот пост
Oscar Campo 14.10.2022 17:07:00
#88 Опубликовано: 28.07.2025 07:32:42
Вячеслав Мезенцев

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

1 437 сообщений из 1 747 понравились пользователям.

Группа: 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 пользователям понравился этот пост
Alvaro Diaz Falconi 28.07.2025 08:23:50
#89 Опубликовано: 28.07.2025 08:30:23
Alvaro Diaz Falconi

Alvaro Diaz Falconi

1 020 сообщений из 1 692 понравились пользователям.

Группа: 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.
Отредактировано 28.07.2025 08:31:09
#90 Опубликовано: 28.07.2025 11:25:58
Вячеслав Мезенцев

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

1 437 сообщений из 1 747 понравились пользователям.

Группа: 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 Опубликовано: 28.07.2025 11:31:06
Вячеслав Мезенцев

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

1 437 сообщений из 1 747 понравились пользователям.

Группа: 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 Опубликовано: 28.07.2025 11:51:08
Alvaro Diaz Falconi

Alvaro Diaz Falconi

1 020 сообщений из 1 692 понравились пользователям.

Группа: 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
Отредактировано 28.07.2025 11:54:17
#93 Опубликовано: 28.07.2025 16:29:43
Вячеслав Мезенцев

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

1 437 сообщений из 1 747 понравились пользователям.

Группа: 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.
Отредактировано 28.07.2025 16:33:24
Russia ☭ forever, Viacheslav N. Mezentsev
#94 Опубликовано: 28.07.2025 18:12:16
Alvaro Diaz Falconi

Alvaro Diaz Falconi

1 020 сообщений из 1 692 понравились пользователям.

Группа: 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.
Отредактировано 28.07.2025 18:19:40
#95 Опубликовано: 28.07.2025 19:33:26
Вячеслав Мезенцев

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

1 437 сообщений из 1 747 понравились пользователям.

Группа: Moderator

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

maple-octave-mode.sm (12 КиБ) скачан 20 раз(а).

image.png
Отредактировано 28.07.2025 19:35:49
Russia ☭ forever, Viacheslav N. Mezentsev
2 пользователям понравился этот пост
Alvaro Diaz Falconi 29.07.2025 17:41:44, francesco rapuano 30.07.2025 12:11:31
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений