user2260180
user2260180

Reputation: 275

How to assign a value inside a cell in Matlab

How can I assign one single entry in a cell array (say the -20)

forces = {1,'Static',{'nodal' {2, 2, -30;
                               3, 2, -20 }} };

Upvotes: 0

Views: 54

Answers (1)

user2875617
user2875617

Reputation:

Like this?

forces{3}{2}{2, 3} = -20;

Upvotes: 2

Related Questions