How to declare a cell array of a particular size n ?

3 views (last 30 days)
I want to declare a cell array of a particular size let's say n .Can anyone tell me how to do it?

Accepted Answer

Akshay Malav
Akshay Malav on 23 Jun 2019
This question has been answered before Here.

More Answers (1)

Image Analyst
Image Analyst on 23 Jun 2019
Use cell():
ca = cell(1, n);

Categories

Find more on Programming in Help Center and File Exchange

Tags

Products


Release

R2018b

Community Treasure Hunt

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

Start Hunting!