How to let equalize one class-defined object with another?

For example, I have a class named ServiceClass
ServiceObj = ServiceClass;
ServiceObj.id =1;
ServiceObj.time=1;
ServiceObjNext = ServiceClass;
ServiceObjNext = ServiceObj;%%
I get index exceeds dimensions, any help?

2 件のコメント

per isakson
per isakson 2017 年 1 月 9 日
I cannot reproduce your problem. Please upload ServiceClass. Use the paper-clip-icon.
David Barry
David Barry 2017 年 1 月 9 日
Yes we need to see the classdef for ServiceClass.

回答 (0 件)

この質問は閉じられています。

タグ

質問済み:

2017 年 1 月 6 日

閉鎖済み:

2021 年 8 月 20 日

Community Treasure Hunt

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

Start Hunting!

Translated by