Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4268158
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T06:59:50+00:00 2026-05-21T06:59:50+00:00

i have a cell array with elements 22*22,18*18*6,14*14*6,10*10*6,6*6*6.can u please help me to initialize

  • 0

i have a cell array with elements 22*22,18*18*6,14*14*6,10*10*6,6*6*6.can u please help me to initialize it

Update:

s{l(:,:,feature_map)=zeros(22,22),zeros(18,18,6),zeros(14,14,6),zeros(10,10,6),zeros(6*6*6)

By using the above command first element of cell array is empty.all other elements have 22*22*6 elements.it’l create problems in convolution

code is:

num_of_maps_in_layer{1}=1;
for i=1:3
    num_of_maps_in_layer{i+1}=6; 
end
num_of_maps_in_layer{5}=6; 

for l=2:5
    for feature_map=1:num_of_maps_in_layer{l}
        sensitivity{l}(:,:,feature_map)=zeros(22,22),zeros(18,18,6),zeros(14,14,6),zeros(10,10,6),zeros(6*6*6)
    end
end
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T06:59:50+00:00Added an answer on May 21, 2026 at 6:59 am

    I think this is what you want to do:

    sensitivity = {zeros(22,22),...
                   zeros(18,18,6),...
                   zeros(14,14,6),...
                   zeros(10,10,6),...
                   zeros(6,6,6)};
    

    This creates a 5-element cell array sensitivity. The first cell contains a 22-by-22 numeric array of zeroes, the second cell contains an 18-by-18-by-6 numeric array of zeroes, etc.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

You have: val array = new Array[Array[Cell]](height, width) How do you initialize all elements
I have a problem when trying to convert a sequnce of cell array's elements
I have a list (cell array) of elements with structs like this: mystruct =
I have three arrays, all the same size: xout % cell array xin %
I have a cell array where each element consists of a vector of ids.
I have a cellarray of dimension 100x1 of integer elements. How can I plot
I have a cell array like a={'potential'; 'impact'; 'of'; 'stranded'; 'assets'; 'and'; 'other'; 'necessary';
How do I loop over an Array which has 5 elements. I have 5
I have a cell array in matlab columns = {'MagX', 'MagY', 'MagZ', ... 'AccelerationX',
I have a column vector I want to convert to a cell array such

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.