how to multiply each elements of the cell with a scalar quantity?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Nir Vaishnav
le 25 Août 2022
Réponse apportée : Matt J
le 25 Août 2022
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?
0 commentaires
Réponse acceptée
Matt J
le 25 Août 2022
OptP{i} =@(sigma) scalar * vpa(solve(rate_k(pt,sigma)==rate_th,pt));
0 commentaires
Plus de réponses (0)
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!