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 8548413
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T13:29:24+00:00 2026-06-11T13:29:24+00:00

I need some help. Basically, I have a large dataset that I have split

  • 0

I need some help. Basically, I have a large dataset that I have split into blocks, now, I need to print the blocks individually instead of printing the whole entire block.

Here is my code:

function f = printData()

  data('FILE_NAME');
  blockeddata = blocks(data, 600, 200);
  f = blockeddata;
end

I just need to print each block separately. Ideas anyone?

Here’s the function:

function f = blocks(v, N, M)

   n = length(v);
   maxblockstart = n - N + 1;
   lastblockstart = maxblockstart - mod(maxblockstart-1 , M);

   % numblocks = (lastblockstart-1)/M + 1
   numblocks = (lastblockstart-1)/M + 1;

   %f = zeros(numblocks,N);

   for i = 1:numblocks
     for j = 1:N
       f(i,j) = v((i-1)*M+j);
     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-06-11T13:29:25+00:00Added an answer on June 11, 2026 at 1:29 pm

    Not sure if I understand the problem, but how about sending N and M to print()? From the quick looks of it, you already have the functionality. You just need to modify your print function to take N and M.

    So basically, add N and M to print() and change 600 and 200 to N and M respectively. Then call print with 600 and 200 (or whatever you like) as your input.

    Hope it helped 😀

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

Sidebar

Related Questions

I need some help with a linq query. Basically, I have a datatable with
I'm working with some php and need some help. Basically I have a script
I need some help with defining a dynamic method. Basically, I have many classes
I need some help with this. Basically I have the following code which I
I need some help here. Basically, I have an Activity. This uses the startActivityForResult()
I need some help on this one please, i basically have menuVIP.java, and vipKeyword.java.
I need some help. Basically, I have a paragraph of text in a text
Just need some help with a SQL statement, I have a table that has
I need some help choosing databases for my application. My web application will basically
Need some help... I have jasperserver 4.1 installed on my ubuntu. It runs via

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.