필터 지우기
필터 지우기

how to multiply each elements of the cell with a scalar quantity?

조회 수: 1 (최근 30일)
Nir Vaishnav
Nir Vaishnav 2022년 8월 25일
답변: Matt J 2022년 8월 25일
for i=1:4
rate_k=@(pt,sigma)Rate(W,I,B,B1,pt,sigma,R1,invs1,i);
OptP{i} =@(sigma)vpa(solve(rate_k(pt,sigma)==rate_th,pt));
end
%%How to multiply each element of OptP{i} to a scalar quantity?

채택된 답변

Matt J
Matt J 2022년 8월 25일
OptP{i} =@(sigma) scalar * vpa(solve(rate_k(pt,sigma)==rate_th,pt));

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Modeling에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by