Unable to resolve the name Error
Afficher commentaires plus anciens
The error I keep recieving is as follows:
Unable to resolve the name 'triangle2.X.Data'.
Error in lab3 (line 7)
tt2 = triangle2.X.Data-1;
The code I have is as follows:
load triangle2.mat
%Triangular Pulse with 2V
tt2 = triangle2.X.Data-1;
ut2 = triangle2.Y(2).Data;
yt2 = triangle2.Y(1).Data;
offset = mean(yt2(1:9000));
yt2 = yt2 - offset;
I'm not sure what is causing this issue since I have not encountered it in previous versions when I ran similar code. I added a path to the folder containing the data as well, but I still recieve the same error. Thanks for any help!
3 commentaires
Dyuman Joshi
le 13 Fév 2024
Please share the triangle2.mat file. Use the paperclip button to attach.
Grace
le 13 Fév 2024
That file does not contain a variable called triangle2, or X or Y, for that matter.
whos -file triangle2.mat
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Matrix Indexing dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!