Simulink.Bus bug when creating class RadarObject

Hello together,
I encountered weird Matlab behavior when I created a class called "RadarObject". I had a weird bug some days ago I could not explain or reproduce, but now I saw when I type
help RadarObject
or
doc RadarObject
I get forwarded to the help/doc page of Simulink.Bus class: https://de.mathworks.com/help/simulink/slref/simulink.bus-class.html
It already happens with a default class:
classdef RadarObject
%RADAROBJECT Summary of this class goes here
% Detailed explanation goes here
properties
Property1
end
methods
function obj = RadarObject(inputArg1,inputArg2)
%RADAROBJECT Construct an instance of this class
% Detailed explanation goes here
obj.Property1 = inputArg1 + inputArg2;
end
function outputArg = method1(obj,inputArg)
%METHOD1 Summary of this method goes here
% Detailed explanation goes here
outputArg = obj.Property1 + inputArg;
end
end
end
If I rename the class to "RadarObject2" I get forwarded to the right doc page of my class.
When I open a new Matlab session without adding anything from my code to the Matlab path and create a class "RadarObject" this bug does not occur, so it looks like it is somewhere deep in the code.
Is there anyone who has experienced such a bug and can give me a hint where I need to search?
Thank you guys and best regards!

댓글 수: 2

Hi,
I'm unable to reproduce the above said behaviour.Can you please provide the Reproduction procedure?
In the mean time I figured out what was causing the issue. I loaded some measurement data in my workspace where a Simulink bus object had the same name as my class. I guess it just got overwritten.
I was really confused, because I was not using Simulink at all. But the measurement data was recorded using Simulink.
So I think this thread can be deleted since the error was only on me. Thank you for taking your time to help me anyway!
Best regards!

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

답변 (0개)

카테고리

도움말 센터File Exchange에서 Event Functions에 대해 자세히 알아보기

제품

릴리스

R2018b

질문:

2019년 7월 30일

댓글:

2019년 8월 6일

Community Treasure Hunt

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

Start Hunting!

Translated by