Error: System.NotSupportedException: The given path's format is not supported.
Here's my code:
using System;
using MathNet.Numerics.LinearAlgebra;
using MathNet.Numerics.Data.Matlab;
namespace TestMatlabAzure
{
class Program
{
// this one works
private const string filePath = "C:\Data\ImportFiles\CMI\Test_20190615\probFile_nn07c_20180316_000000_0.mat";
// this one doesn't
//private const string filePath = "https://elpround3.blob.core.windows.net/test0705/probFile_nn07c_20180316_000000_0.mat";
static void Main(string[] args)
{
Console.WriteLine("Reading .mat file....");
Matrix<double> m = MatlabReader.Read<double>(filePath);
Console.WriteLine(m.ToString());
Console.ReadKey();
}
I have the following code, which works fine: String filePath = "C:\MyFolder\MyMatFile.mat"; Matrix m = MatlabReader.Read(filePath);
However when I change filePath to a URL, I get the following error: String filePath = "https://myproj.blob.core.windows.net/mycontainer/MyMatFile.mat"; Matrix m = MatlabReader.Read(filePath);
Error: System.NotSupportedException: The given path's format is not supported.
Here's my code:
using System; using MathNet.Numerics.LinearAlgebra; using MathNet.Numerics.Data.Matlab;
namespace TestMatlabAzure { class Program { // this one works private const string filePath = "C:\Data\ImportFiles\CMI\Test_20190615\probFile_nn07c_20180316_000000_0.mat";
}