can anyone help me to find the solution of the statement "how to get the values only in the places where A has"
1 次查看(过去 30 天)
显示 更早的评论
A=[0 0.6318 0 4.0000 0.1662 0 0 0 0.5583 0;
0 0.1265 0 0.2120 5.0000 0 0 0 0.7425 0;
0 2.0000 0 0.7032 0.5578 0 0 0 2.0000 0]
B=size(A)
C=rand(B)
If i run the code it executes but for C it gives values for all the places. But how to get the values only in the places where A has.
2 个评论
Rik
2018-1-15
Since when is it possible to accept two answers? That's news to me. Good thing though, as sometimes multiple answers are equivalent.
Walter Roberson
2018-1-15
Accepting multiple answers is a race condition: the database entries do not get locked as quickly as they should be.
采纳的回答
更多回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Spline Postprocessing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!