exist() applied to a structure reference returns 0. If you want to know whether a field exists use isfield:
Open in MATLAB Online Dear all, My goal is to have an array with 8760 rows (number of hours in a year). Each row should now indicate the day-number of each month, which will mean that I have in the first rows 23x the number 1, then 23 times the number 2, ... till the end...
Pay close attention to which of those variables are char arrays and which are cell arrays containing a char array. For purposes of FPRINTF, you're going to want to use one of the char arrays. 0 件のコメント サインインしてコメントする。