Eval or Evalin gives error ...Dot indexing not supported for this type of variable
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
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
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.
Risposte (0)
Vedere anche
Categorie
Scopri di più su Matrix Indexing in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!