photo

Alicia Cuber Caballero


Last seen: presque 5 ans il y a Actif depuis 2019

Followers: 0   Following: 0

Statistiques

All
  • Thankful Level 2
  • Thankful Level 1
  • Solver

Afficher les badges

Feeds

Afficher par

Question


Asking for user input only once with input, or take values like pi/3 with inputdlg
I have a function that calculates when you input values for n, for x, for y. Now I need to ask the user for input. I prefer how...

presque 5 ans il y a | 1 réponse | 0

1

réponse

Question


How to "link" an .m file to an .mlx file
Hi, I have got this assignment in which I am required to create a function to complete a task, so I used a separate .m file, whi...

presque 5 ans il y a | 1 réponse | 0

1

réponse

A résolu


Finding Perfect Squares
Given a vector of numbers, return true if one of the numbers is a square of one of the other numbers. Otherwise return false. E...

plus de 5 ans il y a

A résolu


Create times-tables
At one time or another, we all had to memorize boring times tables. 5 times 5 is 25. 5 times 6 is 30. 12 times 12 is way more th...

plus de 5 ans il y a

A résolu


Triangle Numbers
Triangle numbers are the sums of successive integers. So 6 is a triangle number because 6 = 1 + 2 + 3 which can be displa...

plus de 5 ans il y a

Réponse apportée
I get index error, but the correct result. How can I avoid this?
Thank you! That's a simpler solution :)

plus de 5 ans il y a | 0

A résolu


Remove any row in which a NaN appears
Given the matrix A, return B in which all the rows that have one or more <http://www.mathworks.com/help/techdoc/ref/nan.html NaN...

plus de 5 ans il y a

Question


I get index error, but the correct result. How can I avoid this?
I am trying to solve this Cody problem where I need to remove all rows that contain NaN-s. My code looks like this: [m,n]=si...

plus de 5 ans il y a | 2 réponses | 0

2

réponses

A résolu


Fibonacci sequence
Calculate the nth Fibonacci number. Given n, return f where f = fib(n) and f(1) = 1, f(2) = 1, f(3) = 2, ... Examples: Inpu...

plus de 5 ans il y a

A résolu


Eight Queens Solution Checker
Write a function to verify whether an arrangement of queens on a chessboard is a valid solution to the classic <http://en.wikipe...

plus de 5 ans il y a

A résolu


Make a checkerboard matrix
Given an integer n, make an n-by-n matrix made up of alternating ones and zeros as shown below. The a(1,1) should be 1. Examp...

plus de 5 ans il y a

A résolu


Solve the Sudoku Row
*Description* A simple yet tedious task occurs near the end of most Sudoku-solving algorithms, computerized or manual. The ta...

plus de 5 ans il y a

A résolu


Return the 3n+1 sequence for n
A Collatz sequence is the sequence where, for a given number n, the next number in the sequence is either n/2 if the number is e...

plus de 5 ans il y a

A résolu


Is my wife right?
Regardless of input, output the string 'yes'.

plus de 5 ans il y a

A résolu


Pizza!
Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...

plus de 5 ans il y a

A résolu


Project Euler: Problem 10, Sum of Primes
The sum of the primes below 10 is 2 + 3 + 5 + 7 = 17. Find the sum of all the primes below the input, N. Thank you <http:/...

plus de 5 ans il y a

Question


How can I break this while loop and store the data?
Hi! I'm trying to generate a collatz sequence for any n and to stop when n == 1. I used the following: n=7 while n>1 if m...

plus de 5 ans il y a | 1 réponse | 0

1

réponse

A résolu


Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

plus de 5 ans il y a

A résolu


Add two numbers
Given a and b, return the sum a+b in c.

plus de 5 ans il y a

A résolu


Return area of square
Side of square=input=a Area=output=b

plus de 5 ans il y a

A résolu


Maximum value in a matrix
Find the maximum value in the given matrix. For example, if A = [1 2 3; 4 7 8; 0 9 1]; then the answer is 9.

plus de 5 ans il y a

A résolu


Determine if input is odd
Given the input n, return true if n is odd or false if n is even.

plus de 5 ans il y a

A résolu


Find all elements less than 0 or greater than 10 and replace them with NaN
Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN. Example: Input ...

plus de 5 ans il y a