Main Content


Save RF Blockset model created using rfsystem



    filename = save_system(rfs) saves the RF Blockset™ model created using the rfsystem System object™ rfs .

    filename = save_system(rfs,newrfs) saves the model to a new file, newrfs.


    collapse all

    Create a fifth-order bandpass RF filter and an amplifier with the gain of 3 dB.

    f1 = rffilter('ResponseType','Bandpass','FilterOrder',5,'PassbandFrequency',[4.85 5.15]*1e9);
    a1 = amplifier('Gain',3,'NF',1.53,'OIP3',35);

    Create an rfbudget object using the elements at an input frequency of 5 GHz, an available input power of -30 dBm, and a bandwidth of 200 MHz.

    rfb = rfbudget([f1 a1],5e9,-30,200e6);

    Create an RF system using the rfbudget object and name the RF Blockset model.

    rfs = rfsystem(rfb,'ModelName','RFSystem');

    Open the RF Blockset model.


    Save and close the RF Blockset model.


    Input Arguments

    collapse all

    RF system, specified as an rfsystem object

    File to save to, specified as a character vector or string scalar. You can specify a model name in the current folder or the full path name, with or without an extension.

    Example: save_system(rfs,'mysystem2')

    Output Arguments

    collapse all

    Name of the saved file, returned as a character vector or a cell array of character vectors.


    • To save a smaller RF system use the release function before save_system(rfs).

    Version History

    Introduced in R2021a