有没有办法在Matlab中确定字符串的编码?
说,我有一个编码的字符串,但我不知道它是用Base16,Base32还是Base64编码编码的,我怎么知道呢?
这是我需要的,但在c#
中 public static bool IsBase64(string base64String)
{
if (base64String.Replace(" ", "").Length % 4 != 0)
{
return false;
}
try
{
Convert.FromBase64String(base64String);
return true;
}
catch (FormatException exception)
{
// Handle the exception
}
return false;
}
在Matlab中有没有办法做到这一点?