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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T16:46:55+00:00 2026-05-30T16:46:55+00:00

num = input(‘Enter the size’) I want to create a 2 dimensional matrix matrix

  • 0

num = input(‘Enter the size’)

I want to create a 2 dimensional matrix matrix of dimensions numx2 using num. So I use zeroes(num, 2);

However I get this error

Undefined function or method 'zeroes' for input
arguments of type 'double'.

I tried casting to a uint8 and an int8 and it didnt work so I looked up the matlab documentation but it doesnt give the parameter types for functions. So anybody know how to create this 2d matrix using the value of num that I get from the user?

  • 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-30T16:46:57+00:00Added an answer on May 30, 2026 at 4:46 pm

    The function you want to use is zeros not zeroes

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

Sidebar

Related Questions

Given this Python program: num = input(Enter a number: ) result = 1024 for
Look at this: $('form).submit(function (event) { $(':input.required').trigger('blur'); var num = $('.warning', this).length; alert(num);//Focus here!
This is my function: (defun MyFunction(input) (let ((NEWNUM (find input num))) (if (find input
Consider this code: >>> num = int(raw_input('Enter the number > ')) If the user
<form action=> <input type=text value= class=card-num /> <input type=text value= class=card-cvv2/> </form> <div class=description>
<input type=text class=the_name data-num=1 value=Choose a Font.> Find all elements that have input.the_name AND
I'm using python 3.2.2 on windows 7 and I'm trying to create a program
How can I print the NUM value that I get from the input box
I want to seperate a rational function to num and denom: i.e x*y/(2*z) ===>
I have a following issue - I'm using jQuery to add additional input forms

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.