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

Is it possible to do the following withot a for cycle? for n = 1:N, data(n).x = []; end

Answers (1)

data(1:N).x = []; %edited after Stephens comment

2 Comments

Thanks Stephen read it before but forgot this time

This question is closed.

Tags

Asked:

on 30 Oct 2018

Closed:

on 20 Aug 2021

Community Treasure Hunt

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

Start Hunting!