Пример #1
0
        public void LongStringTest()
        {
            var matfile = new DotMatFile();
            var str     = new MatlabString("Now is the time for all good men to come to the aid of the party.");

            matfile["stringLong"] = str;
            matfile.WriteToDisk("stringLong.mat");
        }
Пример #2
0
        public void ShortStringTest()
        {
            var matfile = new DotMatFile();
            var str     = new MatlabString("foo");

            matfile["stringFoo"] = str;
            matfile.WriteToDisk("stringFoo.mat");
        }
Пример #3
0
        public void NullStringTest()
        {
            var matfile = new DotMatFile();
            var str     = new MatlabString(null);

            matfile["stringNull"] = str;
            matfile.WriteToDisk("stringNull.mat");
        }
Пример #4
0
        public void EmptyStringTest()
        {
            var matfile = new DotMatFile();
            var str     = new MatlabString(string.Empty);

            matfile["stringEmpty"] = str;
            matfile.WriteToDisk("stringEmpty.mat");
        }
Пример #5
0
        public void CompressedTest()
        {
            var matFile = new DotMatFile();

            matFile["greeting"] = new MatlabString("Hello, World!");
            var filename = Path.GetRandomFileName() + ".c.mat";

            matFile.WriteToDisk(filename, compressed: true);
            // File.Delete(filename);
        }