Info

This question is closed. Reopen it to edit or answer.

Is it possible to set all data(n).x = []; without a for cycle?

2 views (last 30 days)
Mr M.
Mr M. on 30 Oct 2018
Closed: MATLAB Answer Bot on 20 Aug 2021
Is it possible to do the following withot a for cycle? for n = 1:N, data(n).x = []; end

Answers (1)

madhan ravi
madhan ravi on 30 Oct 2018
Edited: madhan ravi on 30 Oct 2018
data(1:N).x = []; %edited after Stephens comment

This question is closed.

Tags

Community Treasure Hunt

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

Start Hunting!