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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T07:04:23+00:00 2026-05-29T07:04:23+00:00

I want to divide a signal into train, validate and test data randomly. I

  • 0

I want to divide a signal into train, validate and test data randomly. I did it as

[y1,Fs1,nbits1,readinfo1]=wavread('src04.wav');
[y2,Fs2,nbits2,readinfo2]=wavread('tgt04.wav');
[trainV1,valV1,testV1,trainInd,valInd,testInd] = dividerand(y1,0.6,0.2,0.2);
[trainV2,valV2,testV2] = divideind(y2,trainInd,valInd,testInd);

But the validation and test data (valV1, testV1 and valV2, tetsV2) are being displayed as empty matrix.

How can I obtain the validation and test data??

  • 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-29T07:04:23+00:00Added an answer on May 29, 2026 at 7:04 am

    It may be that ‘y1’ has wrong shape. Try transposing y1:

    [trainV1,valV1,testV1,trainInd,valInd,testInd] = dividerand(y1',0.6,0.2,0.2);
    

    Same for ‘y2’

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

Sidebar

Related Questions

I want to divide the window into 2 parts. Each part I can draw
set phoneNumber 1234567890 this number single digit, i want divide this number into 123
The Problem I want to divide a grid (2D array) into random shaped parts
I want to divide the Google map display into 200 parts , I have
I want to divide my page into two sections. It must be separated by
Note: If you want to divide a view hierarchy into multiple subareas and manage
Let's say I have a 100x100 matrix, I want to divide it into equal
I have an array and I want to divide them into page according to
I have the string 001-1776591-7 , and I want to divide it into 3
I have an int[] array = {34,65,3,65,3,2,68,8,4,2}. I want to divide this array into

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.