Gelöst


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

etwa 11 Jahre vor

Gelöst


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

etwa 11 Jahre vor

Gelöst


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

etwa 11 Jahre vor

Problem


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

etwa 11 Jahre vor | 0 | 95 Lösungsvorschläge

Gelöst


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

etwa 11 Jahre vor

Gelöst


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

etwa 11 Jahre vor

Gelöst


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

etwa 11 Jahre vor

Gelöst


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

etwa 11 Jahre vor

Gelöst


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

etwa 11 Jahre vor

Gelöst


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

etwa 11 Jahre vor

Gelöst


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

etwa 11 Jahre vor

Gelöst


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

mehr als 11 Jahre vor

Gelöst


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

mehr als 11 Jahre vor

Gelöst


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

mehr als 11 Jahre vor

Gelöst


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

mehr als 11 Jahre vor

Gelöst


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

mehr als 11 Jahre vor

Gelöst


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

mehr als 11 Jahre vor

Gelöst


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

mehr als 11 Jahre vor

Gelöst


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

mehr als 11 Jahre vor

Gelöst


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

mehr als 11 Jahre vor

Gelöst


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

mehr als 11 Jahre vor

Gelöst


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]

mehr als 11 Jahre vor

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

mehr als 11 Jahre vor | 0

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

mehr als 11 Jahre vor | 0

| akzeptiert

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

mehr als 11 Jahre vor | 1

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

mehr als 11 Jahre vor | 1

| akzeptiert

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

mehr als 11 Jahre vor | 0

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

fast 12 Jahre vor | 0

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

fast 12 Jahre vor | 0

Beantwortet
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

fast 12 Jahre vor | 0

| akzeptiert

Mehr laden