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

Community Treasure Hunt

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

Start Hunting!

Translated by