# sarmaxswath

Upper bound on swath length for SAR

## Syntax

``swlenc = sarmaxswath(v,azres,grazang)``
``swlenc = sarmaxswath(v,azres,grazang,dcang)``

## Description

example

````swlenc = sarmaxswath(v,azres,grazang)` computes the upper bound on swath length based on SAR constraints.```
````swlenc = sarmaxswath(v,azres,grazang,dcang)` specifies the Doppler cone angle that identifies the direction towards the scene relative to the direction of motion of the array.```

## Examples

collapse all

Estimate the constraint on swath length for a side-looking airborne SAR operating in broadside with a sensor velocity of 100 m/s. The radar has a cross-range resolution of 1.5 m and a nominal grazing angle of ${30}^{\circ }$.

```v = 100; azres = 1.5; grazang = 30;```

Compute the swath length constraint.

`swlen = sarmaxswath(v,azres,grazang)`
```swlen = 2.5963e+06 ```

## Input Arguments

collapse all

Sensor velocity in meters per second, specified as a positive real scalar or vector.

Data Types: `double`

Image azimuth or cross-range resolution in meters, specified as a positive real scalar or a vector.

Data Types: `double`

Grazing angle in degrees, specified as a scalar in the range [`0`, `90`].

Data Types: `double`

Doppler cone angle in degrees, specified as a scalar in the range [`0`, `180`]. This argument identifies the direction toward the scene relative to the direction of motion of the array.

Data Types: `double`

## Output Arguments

collapse all

Upper bound on swath length in meters, returned as a matrix. The rows of `swlenc` correspond to the velocity values in `v`. The columns of `swlenc` correspond to the azimuth resolution values in `azres`.

## Extended Capabilities

### C/C++ Code GenerationGenerate C and C++ code using MATLAB® Coder™. 