linsolve function for C{k}
조회 수: 1 (최근 30일)
이전 댓글 표시
if B is a 6 by 1 matrix
and (C{k} has a 1x5005 cell with each cell containing 6x6 double
and I want to find the solution for the functions for each C{k} for which B is the R.H.S.
(since each C{k} is 6 by 6 and b is 6 by 1 then dimensions should be compatible )
when i use the X{k} = linsolve(C{k},B) , i obtain the following error
Unable to perform assignment because brace indexing is not supported for variables of this type.
any suggestions on how can I obtain the desired answers ? ( which would be 6 values of X for each of the 5005 iterations, so 5005 vector matricies ) ?
댓글 수: 0
답변 (1개)
madhan ravi
2018년 12월 6일
편집: madhan ravi
2018년 12월 6일
X{k} = linsolve(reshape([C{k}],6,[]),B)
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!