# How to calculate the reliability of a structure in uqlink

**URL:** <https://uqworld.org/t/how-to-calculate-the-reliability-of-a-structure-in-uqlink/970>\
**Category:** Community Q&A and How To\
**Tags:** uqlink, reliability\
**Created:** [December 15, 2020, 11:48pm UTC](https://uqworld.org/t/how-to-calculate-the-reliability-of-a-structure-in-uqlink/970 "2020-12-15T23:48:04Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![damarginal](https://uqworld.org/user_avatar/uqworld.org/damarginal/32/73_2.png) [@damarginal](https://uqworld.org/u/damarginal)\
**Post date:** [December 16, 2020, 2:44pm UTC](https://uqworld.org/t/how-to-calculate-the-reliability-of-a-structure-in-uqlink/970/4 "2020-12-16T14:44:22Z")

</div>

Yes, it actually depends on how you define your UQLink parser. In my example above, I assume the output is N\times2 matrix, but it is also common to define the parser with multiple output arguments (i.e., `function [Y1,Y2] = myParser(...)`).

If that’s the case, indeed you simply replace the relevant lines with `[~,Y2] = uq_evalModel(myFEM,X)` (as you did, but simply get the second output of interest, assuming it is the tensile stress).

---

_[View the full topic](https://uqworld.org/t/how-to-calculate-the-reliability-of-a-structure-in-uqlink/970)._
