# Is there a Julia equivalent of MATLAB’s rcosdesign?

**URL:** <https://discourse.julialang.org/t/is-there-a-julia-equivalent-of-matlab-s-rcosdesign/138352>\
**Category:** Signal and Image Processing\
**Tags:** dsp, digital-filters\
**Created:** [July 19, 2026, 4:31am UTC](https://discourse.julialang.org/t/is-there-a-julia-equivalent-of-matlab-s-rcosdesign/138352 "2026-07-19T04:31:17Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![blah\_blah.jl](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/blah_blah.jl/32/223304_2.png) [@blah\_blah.jl](https://discourse.julialang.org/u/blah_blah.jl)\
**Post date:** [July 19, 2026, 4:31am UTC](https://discourse.julialang.org/t/is-there-a-julia-equivalent-of-matlab-s-rcosdesign/138352/1 "2026-07-19T04:31:17Z")

</div>

I’m porting a QPSK simulation from MATLAB to Julia and need a root-raised-cosine filter.  
MATLAB provides:

```matlab
rrc_filter = rcosdesign(beta, span, samples_per_symbol, "sqrt");

```

I checked DSP.jl, but rcosdesign does not appear to be available:

```julia
using DSP
rcosdesign(0.35, 4, 20)
# UndefVarError: rcosdesign not defined

```

For now, I implemented the root-raised-cosine impulse response manually and normalized it to unit energy. However, I wanted to check whether:

1. There is an existing Julia package or function that provides RRC filters.
2. DSP.jl has an alternative API I overlooked.
3. There is interest in adding an rcosdesign-equivalent function to DSP.jl.  
The desired behavior is equivalent to MATLAB’s square-root raised-cosine mode, with parameters for roll-off factor, span in symbols, samples per symbol, and energy normalization.  
Any recommendations would be appreciated.

---

<div class="post-metadata">

**Author:** ![kahliburke](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kahliburke/32/208472_2.png) [@kahliburke](https://discourse.julialang.org/u/kahliburke)\
**Post date:** [July 19, 2026, 5:19am UTC](https://discourse.julialang.org/t/is-there-a-julia-equivalent-of-matlab-s-rcosdesign/138352/2 "2026-07-19T05:19:15Z")

</div>

> [@blah\_blah.jl](#):
>
> 1. There is an existing Julia package or function that provides RRC filters.

There is in SignalAnalysis.jl, which uses DSP.jl.

Here is some info on it:

> **[Raised-cosine pulse shaping in Julia](https://discourse-answers.pages.dev/raised-cosine-pulse-shaping-in-julia/)**
>
> MATLAB's rcosdesign(beta, span, sps, shape) designs a (root-)raised-cosine FIR pulse-shaping filter. Julia's DSP.jl has no direct equivalent, but SignalAnalysis.jl provides both shapes as thin wrappers over DSP.digitalfilter: | MATLAB |...

---

<div class="post-metadata">

**Author:** ![blah\_blah.jl](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/blah_blah.jl/32/223304_2.png) [@blah\_blah.jl](https://discourse.julialang.org/u/blah_blah.jl)\
**Post date:** [July 19, 2026, 5:45am UTC](https://discourse.julialang.org/t/is-there-a-julia-equivalent-of-matlab-s-rcosdesign/138352/3 "2026-07-19T05:45:47Z")

</div>

Thanks a lot, I’ll check it out @kahliburke .

---

<div class="post-metadata">

**Author:** ![mbaz](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mbaz/32/17295_2.png) [@mbaz](https://discourse.julialang.org/u/mbaz)\
**Post date:** [July 19, 2026, 3:56pm UTC](https://discourse.julialang.org/t/is-there-a-julia-equivalent-of-matlab-s-rcosdesign/138352/4 "2026-07-19T15:56:12Z")

</div>

There is also [WaveformCommunications.jl](https://github.com/mbaz/WaveformCommunications.jl) (unregistered), which provides functions to generate the more common pulse shapes and constellations.

---

<div class="post-metadata">

**Author:** ![blah\_blah.jl](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/blah_blah.jl/32/223304_2.png) [@blah\_blah.jl](https://discourse.julialang.org/u/blah_blah.jl)\
**Post date:** [July 19, 2026, 5:59pm UTC](https://discourse.julialang.org/t/is-there-a-julia-equivalent-of-matlab-s-rcosdesign/138352/5 "2026-07-19T17:59:02Z")

</div>

Thanks a lot @mbaz , the library has a structure which I intended to build honestly.. anyways I’ll check it out thanks a lot bro

---

<div class="post-metadata">

**Author:** ![RoyiAvital](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/royiavital/32/571_2.png) [@RoyiAvital](https://discourse.julialang.org/u/RoyiAvital)\
**Post date:** [August 18, 2026, 8:03am UTC](https://discourse.julialang.org/t/is-there-a-julia-equivalent-of-matlab-s-rcosdesign/138352/6 "2026-08-18T08:03:25Z")

</div>

> [@mbaz](#):
>
> There is also [WaveformCommunications.jl](https://github.com/mbaz/WaveformCommunications.jl) (unregistered), which provides functions to generate the more common pulse shapes and constellations.

Is there a package which simulates the Tx, Channel and Rx?

---

<div class="post-metadata">

**Author:** ![blah\_blah.jl](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/blah_blah.jl/32/223304_2.png) [@blah\_blah.jl](https://discourse.julialang.org/u/blah_blah.jl)\
**Post date:** [August 18, 2026, 8:33am UTC](https://discourse.julialang.org/t/is-there-a-julia-equivalent-of-matlab-s-rcosdesign/138352/7 "2026-08-18T08:33:06Z")

</div>

RRCFilters.jl can simulate a complete digital baseband link: transmitter, impaired channel, and receiver. It includes CRC/FEC, QAM/PSK, RRC pulse shaping, AWGN, multipath, timing and carrier offsets, AGC, synchronization, equalization, soft demodulation, Viterbi decoding, and BER/EVM measurements.  
The blocks are composable rather than wrapped in one large simulator object, but the repository includes a complete Tx → channel → synchronized Rx example:

> **[GitHub - Spidy104/RRCFilters.jl: Julia toolkit for digital communications and DSP...](https://github.com/Spidy104/RRCFilters.jl)**
>
> Julia toolkit for digital communications and DSP links

It focuses on complex-baseband communications, not circuit-level RF or electromagnetic propagation.

---

<div class="post-metadata">

**Author:** ![mbaz](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mbaz/32/17295_2.png) [@mbaz](https://discourse.julialang.org/u/mbaz)\
**Post date:** [August 18, 2026, 12:52pm UTC](https://discourse.julialang.org/t/is-there-a-julia-equivalent-of-matlab-s-rcosdesign/138352/8 "2026-08-18T12:52:28Z")

</div>

> [@RoyiAvital](#):
>
> Is there a package which simulates the Tx, Channel and Rx?

I haven’t published most of the code I use. I’d suggest taking a look at the [Julia Telecom organization](https://github.com/JuliaTelecom).
