已解决


Length of a short side
Calculate the length of the short side, a, of a right-angled triangle with hypotenuse of length c, and other short side of lengt...

10 years 前

已解决


Is this triangle right-angled?
Given any three positive numbers a, b, c, return true if the triangle with sides a, b and c is right-angled. Otherwise, return f...

10 years 前

已解决


Length of the hypotenuse
Given short sides of lengths a and b, calculate the length c of the hypotenuse of the right-angled triangle. <<http://upload....

10 years 前

问题


Adding Cells with numbers defined as strings
Given a cell, with strings representing numbers, add each value. For example: a = {'9','33'}; the output should be: ...

10 years 前 | 0 | 73 个解题者

已解决


Bottles of beer
Given an input number representing the number of bottles of beer on the wall, output how many are left if you take one down and ...

10 years 前

已解决


Bullseye Matrix
Given n (always odd), return output a that has concentric rings of the numbers 1 through (n+1)/2 around the center point. Exampl...

10 years 前

已解决


Distance walked 1D
Suppose you go from position 7 to 10 to 6 to 4. Then you have walked 9 units of distance, since 7 to 10 is 3 units, 10 to 6 is 4...

10 years 前

已解决


Target sorting
Sort the given list of numbers |a| according to how far away each element is from the target value |t|. The result should return...

10 years 前

已解决


Circle area using pi
Given a circle's radius, compute the circle's area. Use the built-in mathematical constant pi.

10 years 前

已解决


Which values occur exactly three times?
Return a list of all values (sorted smallest to largest) that appear exactly three times in the input vector x. So if x = [1 2...

10 years 前

已解决


Simple equation: Annual salary
Given an hourly wage, compute an annual salary by multiplying the wage times 40 and times 50, because salary = wage x 40 hours/w...

10 years 前

已解决


The Hitchhiker's Guide to MATLAB
Output logical "true" if the input is the answer to life, the universe and everything. Otherwise, output logical "false".

10 years 前

已解决


How to find the position of an element in a vector without using the find function
Write a function posX=findPosition(x,y) where x is a vector and y is the number that you are searching for. Examples: fin...

10 years 前

已解决


Sort a list of complex numbers based on far they are from the origin.
Given a list of complex numbers z, return a list zSorted such that the numbers that are farthest from the origin (0+0i) appear f...

10 years 前

已解决


Summing digits
Given n, find the sum of the digits that make up 2^n. Example: Input n = 7 Output b = 11 since 2^7 = 128, and 1 + ...

10 years 前

已解决


Who Has the Most Change?
You have a matrix for which each row is a person and the columns represent the number of quarters, nickels, dimes, and pennies t...

10 years 前

已解决


Back and Forth Rows
Given a number n, create an n-by-n matrix in which the integers from 1 to n^2 wind back and forth along the rows as shown in the...

10 years 前

已解决


Most nonzero elements in row
Given the matrix a, return the index r of the row with the most nonzero elements. Assume there will always be exactly one row th...

10 years 前

已解决


Find the numeric mean of the prime numbers in a matrix.
There will always be at least one prime in the matrix. Example: Input in = [ 8 3 5 9 ] Output out is 4...

10 years 前

已解决


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

10 years 前

已解决


Swap the input arguments
Write a two-input, two-output function that swaps its two input arguments. For example: [q,r] = swap(5,10) returns q = ...

10 years 前

已解决


Reverse the vector
Reverse the vector elements. Example: Input x = [1,2,3,4,5,6,7,8,9] Output y = [9,8,7,6,5,4,3,2,1]

10 years 前

已回答
solving a equation in MATLAB
<http://www.mathworks.nl/products/symbolic/code-examples.html?file=/products/demos/symbolictlbx/second_order_differential_equati...

10 years 前 | 0

已回答
How can i get the expression of function from the Graph ??
However I would invite you to explore the Curve Fitting Toolbox. <http://www.mathworks.nl/products/curvefitting/videos.html P...

10 years 前 | 0

| 已接受

已回答
how to trasfer workspace values to another pc?
There are many ways of doing this... however a common way is using MAT Files. a = rand(10); b = rand(12); save myMat ...

10 years 前 | 1

已回答
How to store an object (calculated in a function) so that we can use it later with a different script?
Typically people use MAT files for this. a = rand(10); b = rand(12); save myMat a b clear all l...

10 years 前 | 1

| 已接受

已回答
How to read a video in MATLAB R2009b?
mov = aviread(filename) mov = aviread(filename, index) Please note that the online documentation allows you to look up older...

10 years 前 | 0

已回答
Embedded Coder for Matlab R2013b in Linux
http://www.mathworks.nl/matlabcentral/fileexchange/43093-embedded-coder-support-package-for-stmicroelectronics-stm32f4-discovery...

10 years 前 | 0

已回答
Which experimenter kit should I choose for using PIL verification with Embedded coder
http://www.mathworks.nl/hardware-support/ti-c2000.html

10 years 前 | 0

已回答
How can I construct CAN request messages and can response messages?
You will need Vehicle Network Toolbox http://www.mathworks.nl/products/vehicle-network/code-examples.html

10 years 前 | 0

| 已接受

加载更多