Undefined function or variable 'windrose' when trying to create a windrose
Show older comments
Hi, I m having trouble with creating a windrose. I have used this same template several times before but now it does not work.
Here is the code used:
Data1=load('Shippagan_wind.txt')
dir=Data1(:,1)
spd=Data1(:,2)
spdlim = 20
speed = spd(spd > spdlim);
direction = dir(spd > spdlim);
Options.AngleNorth = 0;
Options.AngleEast = 90;
Options.Labels = {'N (0°)', 'E (90°)', 'S (180°)', 'W (270°)'};
Options.FreqLabelAngle = 45;
[figure_handle, count, speeds, directions, Table] = windrose(dir, spd, Options);
This is the error that shows up:
Undefined function or variable 'windrose'.
Error in loaddata (line 14)
[figure_handle, count, speeds, directions, Table] = windrose(dir, spd, Options);
Not sure why it is given me this error, any help would be appreciated.
Answers (1)
Star Strider
on 17 Aug 2021
0 votes
.
Categories
Find more on Startup and Shutdown 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!