Resuelto


Find the hypotenuse
Given a and b (the two sides of a right-triangle), find c, the hypotenuse.

más de 8 años hace

Resuelto


Count photos
Given n people, everyone must have pictures taken with everyone, each photo includes only two persons, please count the total nu...

más de 8 años hace

Resuelto


sum of first 'n' terms
Given n=10, find the sum of first 'n' terms Example: If n=10, then x=1,2,3,4,5,6,7,8,9,10. The sum of these n=10 terms is 55...

más de 8 años hace

Resuelto


CONVERT TAN TO SIN
In a right angle triangle ABC given the tan(A) then find sin(A) For example tan(A)=3/4 then sin(A)=3/5

más de 8 años hace

Resuelto


only input
Return the output without writing any code into the function.

más de 8 años hace

Resuelto


Tell me the slope
Tell me the slope, given a vector with horizontal run first and vertical rise next. Example input: x = [10 2];

más de 8 años hace

Resuelto


Who invented zero?
We know the importance zero in computer science, mathematics... but who invented zero? Clue: He was the first in the line ...

más de 8 años hace

Resuelto


Add two numbers
Calculate the sum of two numbers. Example input = [2 3] output = 5

más de 8 años hace

Resuelto


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...

más de 8 años hace

Resuelto


Sum all integers from 1 to 2^n
Given the number x, y must be the summation of all integers from 1 to 2^x. For instance if x=2 then y must be 1+2+3+4=10.

más de 8 años hace

Respondida
randomly divide a matrix
Hello Dear, Use this code. I've generated a random matrix of the same order that you want. I have randomized all the rows of ...

más de 8 años hace | 3

Respondida
compare and calculate two excel sheet
Hello Huitian Mao, I hope this will be helpful. I've attached a sample excel sheet of gender and income too. Change the locat...

más de 8 años hace | 2

| aceptada

Respondida
Plotting Animation Help Needed
Hello Dear, Use this code. If you want make necessary changes as per your requirements. clc; close all; clear all; a...

más de 8 años hace | 1

| aceptada

Enviada


Sliding Box Animation
A simple demonstration of animation in matlab

más de 8 años hace | 1 descarga |

0.0 / 5
Thumbnail

Resuelto


what is sin of 0
what is sin of 0

más de 8 años hace

Resuelto


Area of square
find the area of the square, whose length of diagonal is given as x.

más de 8 años hace

Respondida
Adding new values to an array using a loop
Hello Dear, I have modified your code. Now it is working as per your requirement. n_axles = input('define amount of axl...

más de 8 años hace | 1

| aceptada

Resuelto


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...

más de 8 años hace

Respondida
How can i match a value in variable with data stored in database?
Hello Dear, Use this code with some changes as per your requirement: clc; clear all X = [1 323 2 44 3 66 77 88 2 1 2 3 ...

más de 8 años hace | 1

| aceptada

Resuelto


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...

más de 8 años hace

Resuelto


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 ...

más de 8 años hace

Resuelto


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...

más de 8 años hace

Resuelto


Select every other element of a vector
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

más de 8 años hace

Resuelto


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

más de 8 años hace

Resuelto


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

más de 8 años hace

Resuelto


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

más de 8 años hace

Resuelto


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

más de 8 años hace

Resuelto


Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

más de 8 años hace

Respondida
I have several axes in a figure that get replotted using different coordinate systems. When the grid and ticks are moved, the old tick labels are not deleted before the new tick labels are displayed, resulting in an unreadable mess. Any suggestions?
Hello Dear, You have not attached your code, so it is a bit difficult to evaluate your problem and give a proper solution of ...

más de 8 años hace | 1

Respondida
How can I remove the boundary(only) of this image?
Hello Dear, As you mentioned that you already know about loop warping on all sides, have a look at my approach. I hope you wi...

más de 8 años hace | 2

Cargar más