Gelöst


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

mehr als 8 Jahre vor

Gelöst


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

mehr als 8 Jahre vor

Gelöst


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

mehr als 8 Jahre vor

Gelöst


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

mehr als 8 Jahre vor

Gelöst


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

mehr als 8 Jahre vor

Gelöst


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

mehr als 8 Jahre vor

Gelöst


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

mehr als 8 Jahre vor

Gelöst


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

mehr als 8 Jahre vor

Gelöst


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

mehr als 8 Jahre vor

Gelöst


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.

mehr als 8 Jahre vor

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

mehr als 8 Jahre vor | 3

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

mehr als 8 Jahre vor | 2

| akzeptiert

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

mehr als 8 Jahre vor | 1

| akzeptiert

Gesendet


Sliding Box Animation
A simple demonstration of animation in matlab

mehr als 8 Jahre vor | 1 Download |

0.0 / 5
Thumbnail

Gelöst


what is sin of 0
what is sin of 0

mehr als 8 Jahre vor

Gelöst


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

mehr als 8 Jahre vor

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

mehr als 8 Jahre vor | 1

| akzeptiert

Gelöst


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

mehr als 8 Jahre vor

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

mehr als 8 Jahre vor | 1

| akzeptiert

Gelöst


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

mehr als 8 Jahre vor

Gelöst


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

mehr als 8 Jahre vor

Gelöst


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

mehr als 8 Jahre vor

Gelöst


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

mehr als 8 Jahre vor

Gelöst


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

mehr als 8 Jahre vor

Gelöst


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

mehr als 8 Jahre vor

Gelöst


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

mehr als 8 Jahre vor

Gelöst


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

mehr als 8 Jahre vor

Gelöst


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

mehr als 8 Jahre vor

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

mehr als 8 Jahre vor | 1

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

mehr als 8 Jahre vor | 2

Mehr laden