我试图在Matlab和Maple中解决以下等式。 它涉及基于2自由度剪切的建筑物理想化的质量,刚度和阻尼矩阵的推导。
我需要从:
解决质量矩阵M. E'.M.E = I
E = [0.459 0.834;0.888 -0.551]
和I = [1 0;0 1]
从以下方面解决Matrix K:
带有E'.K.E = W²
的 W² = [26.39² 0;0 73.83²]
从以下方法解决Matrix C:
E'.C.E = 2.Z.W
与W = [26.39 0;0 73.83]
和Z = [0.017 0;0 0.009]
谢谢
答案 0 :(得分:0)
你试过了吗?
$rows = array();
$stmt = $dbconnection->query("SELECT * FROM TABLE_NAME WHERE data_field LIKE 'data_selection'");
if ($stmt) {
while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) {
array_push($rows, $row);
var_dump($row); // to review output
if ($row['something '] == NULL) {
$highlights = $row;
} elseif ($row['something'] == 'selection2') {
$highlightsarray = array("gridHighlights" => 'text option 2 to display on site');
$highlights = $row + $highlightsarray;
} elseif ($row['something'] == 'selection1') {
$highlightsarray = array("gridHighlights" => 'text option 1 to display on site');
$highlights = $row + $highlightsarray;
}
$fields = $highlights; // this is a placeholder for other if statements I need to add (like $fields = $highlights + $anotherIfStatement;)
$output .= $modx->getChunk('chunk_name', $fields);
}
}
return $output;
}