What Shall I need to add while calling file having numerical digits (e.g. -1,-2)?
Show older comments
% 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"
Accepted Answer
More Answers (1)
the cyclist
on 28 Mar 2021
Edited: the cyclist
on 28 Mar 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.
Categories
Find more on Debugging and Improving Code in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!