Why do I receive an 'Invalid input argument of type 'double'. Input must be a structure or a Java or COM object' error while loading data in a simbiology fit program?

조회 수: 65 (최근 30일)
I deviced a kinetic model using simbiology, simulated it and everything worked fine. Then I loaded a data set from excel containing three columns: ID, Time and concentration. I set ID as group, Time as independent and concentration as depended variables. But when I run the program it says
Invalid input argument of type 'double'. Input must be a structure or a Java or COM object.
I've also tried loading the data directly from the workspace and it gave the same error.
I converted the data to a structure and that is not listed as a valid input type while importing a dataset. I checked online tutorials and everyone seems to be able to load 'double' types.
The reaction is just A+B-->null
And dB/dt = -k*[B] and A is constant
  댓글 수: 5
Marc
Marc 2022년 8월 29일
I'm using 2022a and still have the same issue...
Why has the bug not been sorted out yet?
Florian Augustin
Florian Augustin 2022년 8월 29일
편집: Florian Augustin 2022년 8월 29일
Hi Marc,
You might be seeing a different issue with the same symptom. I just confirmed that the issue Archishman reported is fixed in R2022a. Can you share reproduction steps that lead to the error? Are you working with the general release, or do you have an update version of R2022a installed? Which operating system are you working on? If you do not want to share this information publicly on MATLAB Answers, please contact MathWorks Technical Support.
Thank you,
Florian

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

채택된 답변

Fulden Buyukozturk
Fulden Buyukozturk 2021년 10월 19일
편집: Fulden Buyukozturk 2021년 10월 19일
Are you running R2021b and is your dataset has only one group? If so, this is likely a known bug with the app that affects datasets with no group or one group.
You could use the command-line interface fitproblem instead of the app or run the app in R2021a. Sorry for the inconvenience.
  댓글 수: 2
Fiona
Fiona 2023년 3월 13일
Hi Fulden,
I am getting this error :
"
Error using fieldnames
Invalid input argument of type 'cell'. Input must be a structure or a Java or COM object.
Error in BIDSFetcher/getPreopAnat (line 300)
templateOrder = fieldnames(obj.spacedef.norm_mapping)';
"
I am trying to open a BIDS format folder in lead dbs developer mode.
I DO have R2021b installed, however my PhD supervisor also has R2021b installed and does not have the same error. He does have a lot more matlab applications installed than me, and it would be very difficult to find out which app is responsbile for the differene between our machines, considering he has so many that I do not.
Do you have any ideas on a fix for this?
Thanks
Fiona
Fiona 2023년 3월 13일
These are the parts of the code in the same file "BIDSFetcher.m" where it refers to obj.spacedef.name:
% Set base dir and base name
templateSpace = obj.spacedef.name;
baseName = fullfile(LeadDBSDirs.normDir, 'transformations', ['sub-', subjId, '_from-']);
"
and
% Set normalized anat images
templateSpace = obj.spacedef.name;
session = fieldnames(coregAnat);
for i=1:length(session)
modality = fieldnames(coregAnat.(session{i}));
for j=1:length(modality)
anat = strrep(coregAnat.(session{i}).(modality{j}), LeadDBSDirs.coregDir, LeadDBSDirs.normDir);
normAnat.(session{i}).(modality{j}) = strrep(anat, obj.anchorSpace, templateSpace);
Is it possible to make obj.spacedef.name a structure somehow?

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

추가 답변 (0개)

커뮤니티

더 많은 답변 보기:  SimBiology Community

카테고리

Help CenterFile Exchange에서 Import Data에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by