while plotting frf curve for input and output result following error is coming in hypergraph. "Vectors must have the same number of elements in : Curve 1....FRFmag(p1w2c1.y,p1w1c3.y)." how to fix this , kindly help?

Jitender Singh Thakur
Jitender Singh Thakur Altair Community Member
edited August 2021 in Community Q&A

while plotting frf curve for input and output result following error is coming in hypergraph.   

"Vectors must have the same number of elements in : Curve 1....FRFmag(p1w2c1.y,p1w1c3.y)."   

 

how to fix this , kindly help?

Answers

  • venkata
    venkata
    Altair Employee
    edited August 2021

    Example

    Curve Math Vectors Result
    x = freq(c1.x)

    y = frfmag(c1.y, c2.y)

    Given c1 and c2, a curve is created which is the magnitude of the FRF for input c1 and output c2.

    Comments

    The frfmag function returns the magnitude of a Frequency Response Function (FRF). vec_expr_1 and vec_expr_2 are assumed to be evenly sampled. vec_expr_1 and vec_expr_2 must have the same number of elements. The resultant vector has a number of elements equal to the least power of two greater than or equal to the number of elements in vec_expr_1.

    The FRF is complex-valued and used to obtain the frequency-domain parameters of a given system.