
siya lolo
自 2018 起处于活动状态
Followers: 0 Following: 0
Feeds
提问
I want to plot a histogram with the following code, but it's not giving me the desired output?
x = [1 2 3 4 5]; y = [40.13 23.14 16 11.03 9.73]; hist(x,y) tittle('Duration of ridging anticyclones') xlabel = (('number of...
6 years 前 | 1 个回答 | 0
1
个回答提问
Hi everyone. the following code is giving me an error, "Subscript indices must either be real positive integers or logicals" at line 16, please help me resolve it
A = load('my_dates.txt'); for iLength = 1:56 if iLength < 10 label = sprintf('0%s',num2str(iLength)); else ...
6 years 前 | 1 个回答 | 0
1
个回答提问
Hi everyone, i need help. When I run my script, i don't get an error message all I get from the command line is 'Lab 1: no data', what might be the problem with my script?
for iLength = 1:42 if iLength < 10 label = sprintf('0%s',num2str(iLength)); else label = num2s...
6 years 前 | 0 个回答 | 0
0
个回答提问
I have the following code which runs but doesn't do what I want it to do. Here am reading data from a file and I want to group it according to its DUR,e.g. the event that have a DUR=1 be in the subfolder 01 under events, and so forth.
fn=sprintf('ridging_daily_evolution_1980.txt'); A=load(fn); [m,n]=size(A); for i=1:m-1 DUR=A...
6 years 前 | 0 个回答 | 0
0
个回答提问
I am creating a date file using the following script, i want it to print DATES[] in the file my_dates.txt but it's only printing one date which is 2.0171e+09, that is when i type A(1,1)...i pleading for help?
for iy = 2005:2017 yr = num2str(iy); for im = 1:12 if im < 10 mn = sprintf('0%s',num2s...
6 years 前 | 1 个回答 | 0
1
个回答提问
Error using fprintf Invalid file identifier. Use fopen to generate a valid file identifier.
fn=sprintf('ridging_daily_evolution_1980.txt'); A=load(fn); [m,n]=size(A); for i=1:m-1 DUR=A(i,5...
6 years 前 | 1 个回答 | 0
1
个回答已回答
Error using fprintf Invalid file identifier. Use fopen to generate a valid file identifier.
for i=1:m-1 if A(i,5)~=0 && A(i+1,5)==0 DUR=A(i,5); if DUR ~=1 DATE=A(i-(DUR-...
Error using fprintf Invalid file identifier. Use fopen to generate a valid file identifier.
for i=1:m-1 if A(i,5)~=0 && A(i+1,5)==0 DUR=A(i,5); if DUR ~=1 DATE=A(i-(DUR-...
6 years 前 | 0
提问
Error using fprintf Invalid file identifier. Use fopen to generate a valid file identifier.
Hi everyone, am getting this error message and i don't know how to fix it. B = [STR_DATE,num2str(lon),num2str(lat...
6 years 前 | 2 个回答 | 0