windDetails
Description
Examples
Add and Remove Wind Model Objects from UAV Platform
Create a UAV scenario and platform.
scene = uavScenario;
platform = uavPlatform("UAV",scene);
Create a steady wind object with default parameters.
steadyWind = uavWindSteady
steadyWind = uavWindSteady with properties: Velocity: [3.5000 3.5000 5] StartTime: 0 StopTime: Inf
Create a gust wind object with default parameters.
gustWind = uavWindGust
gustWind = uavWindGust with properties: GustAmplitude: [3.5000 3.5000 5] GustLength: [120 120 80] StartTime: 0 StopTime: Inf
Create a turbulence wind object with default parameters.
turbulenceWind = uavWindTurbulence
turbulenceWind = uavWindTurbulence with properties: Specification: "MIL-F-8785C" ModelType: "Von Karman (+q +r)" WindSpeedAt6m: 15 WindDirectionAt6m: 0 ProbExceedanceHighAltitudeIntensity: "10^-2 - Light" ScaleLengthAtMediumHighAltitude: 762 Wingspan: 10 BandLimitedNoiseSampleTime: 0.1000 RandomNoiseSeeds: [23341 23342 23343 23344] StartTime: 0 StopTime: Inf
Add all wind objects to the UAV platform.
addWind(platform,{steadyWind gustWind turbulenceWind})
Obtain the details of the wind objects added to the UAV platform.
windTbl1=windDetails(platform)
windTbl1=3×2 table
ID WindProperties
__ _______________________
1 {1x1 uavWindSteady }
2 {1x1 uavWindGust }
3 {1x1 uavWindTurbulence}
Remove the gust wind object.
removeWind(platform,2)
Obtain the details of the wind objects added to the UAV platform after the gust wind object has been removed.
windTbl2=windDetails(platform)
windTbl2=2×2 table
ID WindProperties
__ _______________________
1 {1x1 uavWindSteady }
2 {1x1 uavWindTurbulence}
Input Arguments
platform
— UAV platform
uavPlatform
object
UAV platform, specified as a uavPlatform
object
Output Arguments
windTbl
— Properties of wind model objects added to UAV platform
table
Properties of the wind model objects that have been added to the UAV platform, returned as an N-by-3 table,N is the total number of wind model objects added to the UAV platform. Each row of the table contains these fields.
Field | Description |
---|---|
ID | Wind model object identifier, returned as a positive integer in the range [1, N]. |
Model | Wind model object type, returned as a string scalar. |
WindProperties | Wind model object properties, returned as a structure with fields corresponding to the properties of the associated wind model type. |
Version History
Introduced in R2024a
See Also
Functions
Objects
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)