How to use function ping in Matlab 2024?

Hello world,
I have a problem with database connection in Matlab 2024. I think it is because of the lack some toolbox packages, which are not there.
Can someone please answer me, what additional toolbox packages do I need beside <Database> toolbox to be able to run <ping.m> function?
Thanks,
Caroline

3 件のコメント

Manikanta Aditya
Manikanta Aditya 2024 年 5 月 21 日
編集済み: Manikanta Aditya 2024 年 5 月 21 日
To use the ping function effectively, especially in the context of database connections, you generally need the Database Toolbox. However, the ping function itself, if it's specifically designed for checking the status of a database connection, would logically be part of the Database Toolbox.
Karolina
Karolina 2024 年 5 月 21 日
Do I need to download MATLAB Production Server to be able to use ping function?
Thank you for your answer,
Caroline
Manikanta Aditya
Manikanta Aditya 2024 年 5 月 21 日
I feel, Database toolbox should help, also as mentioned by @Stephen23, refer to the documentation to know more:

サインインしてコメントする。

回答 (2 件)

Hornett
Hornett 2024 年 5 月 21 日

0 投票

The ping function, was introduced to MATLAB in the 2018b release, is documented. You can find more information and guidance on its usage at the following link: https://www.mathworks.com/help/compiler_sdk/mps_dev_test/ping.html
Walter Roberson
Walter Roberson 2025 年 3 月 24 日

0 投票

It is perhaps easier to system('ping') . Or, if you are using Windows, then to use System.Diagnostics.Process to construct a .NET connection to the ping executable.
Alternately, you can use https://www.mathworks.com/matlabcentral/fileexchange/345-tcp-udp-ip-toolbox-2-0-6 to connect to IP protocol #1, "ICMP", You would use https://en.wikipedia.org/wiki/Internet_Control_Message_Protocol#Control_messages type 8 Code 0 ("echo request")

カテゴリ

製品

リリース

R2024a

質問済み:

2024 年 5 月 21 日

回答済み:

2025 年 3 月 24 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by