What Shall I need to add while calling file having numerical digits (e.g. -1,-2)?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Sumit Saha
el 28 de Mzo. de 2021
Respondida: Walter Roberson
el 28 de Mzo. de 2021
% Calculation of PGA Values for Individual Earthquake
load Histories/IND.X0kY-1k.CXY.sema;
PGA_EQ(1,1) = max(IND.X0kY-1k.CXY(:,1));
But it shows a different error.
>>>>>> "Unexpected MATLAB expression"
0 comentarios
Respuesta aceptada
Walter Roberson
el 28 de Mzo. de 2021
To create the variable name, load precedes any leading underscores or digits in filename with an X and replaces any other nonalphabetic characters with underscores
So IND.X0kY-1k.CXY.sema would result in the creation of variable named IND_X0kY_1k_CXY (file extension is removed)
0 comentarios
Más respuestas (1)
the cyclist
el 28 de Mzo. de 2021
Editada: the cyclist
el 28 de Mzo. de 2021
You may want to try the functional form instead.
load('Histories/IND.X0kY-1k.CXY.sema');
Also, what variables are in your workspace after loading? You will not have a variable named IND.X0kY-1k.CXY (which it seems you are trying to use), because that is not a valid variable name.
0 comentarios
Ver también
Categorías
Más información sobre Google en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!