Unrecognized function or variable

1 vue (au cours des 30 derniers jours)
Pwint Oo San
Pwint Oo San le 14 Déc 2021
Commenté : Rik le 14 Déc 2021
Hi, I want to develop future IDF curve using equidistant quantile matching. I used the following codes. I don't understand why I received the error message ' unrecognized function or variable 'data-hist'? Can anyone please help me? Thanks in advance.
% Fitting Gumbel Distribution
% Negative sign for Gumbel distribution
% Positive is for minimums for evfit
IDF = zeros(size(data_hist,2),length(P));
hist_error = zeros(size(data_hist,2),length(P));
future_change1 = zeros(size(data_hist,2),length(P));
future_change2 = zeros(size(data_hist,2),length(P));
IDF_gen = zeros(size(data_hist,2),length(P));
IDF_gen1 = zeros(size(data_hist,2),length(P));
IDF_gen2 = zeros(size(data_hist,2),length(P));
IDF_gen3 = zeros(size(data_hist,2),length(P));
mtrA = zeros(size(data_hist,2), 4);
mtrPar = zeros(size(data_hist,2), 6);
for i = 1:size(data_hist,2)
max_hist_con = data_hist(:,i);
  3 commentaires
Pwint Oo San
Pwint Oo San le 14 Déc 2021
To be honest, I don't understand you question. The data are imorted into the wokspace well. When I run the following code in command window.
% Load Input Data
% Includes: Sub-daily Maximums, GCM base period daily maximum, GCM future
% period daily maximum
load input_data
% Sub-daily Time Interval
subdaily = [5,10,15,30,60,120,360,720,1440];
% Return Period
RT = [2,5,10,25,50,100];
P = 1./RT;
This is my workspace.
Rik
Rik le 14 Déc 2021
Where is data_hist?
As a side-note, you should not use load this way. It may overwrite variables without warning and it doesn't leave a trace what variables are loaded. Use something like this instead:
% Load Input Data
% Includes: Sub-daily Maximums, GCM base period daily maximum, GCM future
% period daily maximum
S=load('input_data.mat');
histSubDailyMaximums=S.histSubDailyMaximums;
GCMbaseperioddailymaximums=S.GCMbaseperioddailymaximums;
GCMfutureperioddailymaximums=S.GCMfutureperioddailymaximums;
% Sub-daily Time Interval
subdaily = [5,10,15,30,60,120,360,720,1440];
% Return Period
RT = [2,5,10,25,50,100];
P = 1./RT;

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Data Type Conversion dans Help Center et File Exchange

Produits


Version

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by