photo

siya lolo


Active since 2018

Followers: 0   Following: 0

Statistics

  • Thankful Level 2
  • Thankful Level 1

View badges

Feeds

View by

Question


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...

nästan 6 år ago | 1 answer | 0

1

answer

Question


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 ...

ungefär 6 år ago | 1 answer | 0

1

answer

Question


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...

ungefär 6 år ago | 0 answers | 0

0

answers

1

answer

Question


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...

ungefär 6 år ago | 1 answer | 0

1

answer

Answered
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-...

ungefär 6 år ago | 0

Question


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...

ungefär 6 år ago | 2 answers | 0

2

answers