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 comentarios

I cannot reproduce your problem. Please upload ServiceClass. Use the paper-clip-icon.
Yes we need to see the classdef for ServiceClass.

Respuestas (0)

La pregunta está cerrada.

Etiquetas

Preguntada:

el 6 de En. de 2017

Cerrada:

el 20 de Ag. de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by