Error loading .mat files

조회 수: 4 (최근 30일)
Akshay Arora
Akshay Arora 2020년 1월 31일
답변: Walter Roberson 2020년 1월 31일
Hi ALL,
I am trying to load the parameters (.mat file) in matlab, however I am getting the following error:
>> load('GetOptmzInput.mat')
Error using load
Cannot find an exact (case-sensitive) match for 'Timeseries'
The closest match is: timeseries in C:\Program Files\MATLAB\R2016a\toolbox\matlab\timeseries\@timeseries\timeseries.m
I am reltively new to matlab and I have never ran a code which has the input and output stored in parameters.
Can someone please help me undersatnd what should I do to resolve this issue.
Any help would be apprecialted.
Thank you very in advance.
  댓글 수: 2
Spencer Chen
Spencer Chen 2020년 1월 31일
Don't know if anyone can help you without knowing the content of 'GetOptmzInput.mat'.
Blessings,
Spencer
Rik
Rik 2020년 1월 31일
It is always a good idea to load to a struct. That way it is clear where your variables come from.
S=load('GetOptmzInput.mat');

댓글을 달려면 로그인하십시오.

채택된 답변

Walter Roberson
Walter Roberson 2020년 1월 31일
Your mat file contains an object with class Timeseries (capital T), but that class is not defined anywhere on your current MATLAB path. You need to back to the program that created the mat and find its Timeseries class and make sure that class is on your path when you go to load the mat

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Workspace Variables and MAT Files에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by