Undefined function or variable 'AppName'. ??? why ???
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Mohammad Junayed
am 12 Dez. 2018
Bearbeitet: madhan ravi
am 12 Dez. 2018
if Sign == 1
if appm==0
x{end+1,1}.AppName=aa1{selA,1}.Type;
status='[On]';
dataOn=i-7;
app=AppName;
appm=1;
end
SignStr = '[On]';
iCount = iCount + 1;
if ~isempty(r{selA,1})
r{selA,1} = r{selA,1} + 1;
else
r{selA,1} = 1;
end
else
if x{end}.AppName == aa1{selA,1}.Type
AppName=aa1{selA,1}.Type;
status='[Off]';
dataOff=i-7;
end
0 Kommentare
Akzeptierte Antwort
madhan ravi
am 12 Dez. 2018
Bearbeitet: madhan ravi
am 12 Dez. 2018
It likely visible that you have a fieldname AppName from the if statement but then in the next step you assign AppName as if it is defined to app perhaps you are meant to assign with dot indexing like you did in if statement with struct x{...}.AppName
6 Kommentare
madhan ravi
am 12 Dez. 2018
Bearbeitet: madhan ravi
am 12 Dez. 2018
It's clearly a variable but you're treating it as a struct change your lines to below:
dataOn(end-1) and the next dataOn(end)
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Matrices and Arrays finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!