Eval or Evalin gives error ...Dot indexing not supported for this type of variable

1 visualizzazione (ultimi 30 giorni)
I am trying to read logged signal called signal_name from workspace.
when I hit the same in the Matlab Command window. It works.
>> eval('logsout.get("signal_name").Values.Data(end)');
Ans =
Unit32
6
But If I use inside a Matlab function, I am getting "Dot indexing is not supported for this variable" error
function y = fcn()
y=uint32(0);
coder.extrinsic('eval');
y = eval('logsout.get("signal_name").Values.Data(end)');
I have logsout in the base workspace. Any help will be appreciated.
  1 Commento
Abhishek Kumar
Abhishek Kumar il 13 Dic 2020
Hi Manjunath, could you share the logsout, and what error your are getting. Please provide with enough information for us to be able to produce the error.

Accedi per commentare.

Risposte (0)

Prodotti


Release

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by