A résolu


Back to Basics
Dot product of vectors. Given two vectors A and B, calculate their dot product. A=[1 2 3]; B=[3 2 1]; C=10;

presque 10 ans il y a

A résolu


Determinant of a 3x3 Matrix
Return the determinant of a 3x3 matrix. The built-in Matlab function det is not allowed.

presque 10 ans il y a

A résolu


Determine Size of Matrix
Use any function that would output size of matrix

presque 10 ans il y a

A résolu


Implement zero based indexing (Vectors only)
Given an input vector and position (which is zero based) output the value Example: x = [1 2 4 5] pos = 2 value = 4

presque 10 ans il y a

A résolu


Basics - not so easy division
Please make a function whcih divides x/y, but pay attention for some exceptions with NaN,0,Inf. Sometimes return "ERROR" instead...

presque 10 ans il y a

A résolu


Basic commands - What platform are you using?
Please ask matlab waht platform are you using.

presque 10 ans il y a

A résolu


Basic commands - Greatest common divisor
Please write a function, which, will put as output greatest common divisor. Example: A = [-5 17; 10 0];...

presque 10 ans il y a

A résolu


Basic commands - Left division matrix
Please write a function which will left division of A,B Pay attention this is right division: A/B

presque 10 ans il y a

A résolu


Basic commands - logarithmically spaced vector
Make a function, which will give a vector: y=[ 0.01 0.1 1 10 ... 10^x];

presque 10 ans il y a

A résolu


Basic commands - How old is your matlab version?
Please make a function, which gives amount of days since release it's version.

presque 10 ans il y a

A résolu


Which coins to give
I was in shop today. I admired, how shop assistant had to think, which coins to give me. The task is we have a vector v=[0.5 0....

presque 10 ans il y a

A résolu


Find my daddy short leg
Given the ratio of the two legs,and the hypotenuse, find the value of the shorter leg

presque 10 ans il y a

A résolu


Simple polynomial evaluation
Compute the value of a polynomial of degree n with all coefficients '1', at value x. n is always n>=0. p(x)=1+x+x^2+...+x^n...

presque 10 ans il y a

A résolu


Display negative numbers
Given array,x, display all the negative numbers and display output as y. Example x=[1 -2 3 -4] , output is y=[-2 -4].

presque 10 ans il y a

A résolu


Standard Deviation
Find standard deviation of an array.

presque 10 ans il y a

A résolu


Back to Basics - New Data Type in R2016b - convert a char to a string
Convert an char array into a string.

presque 10 ans il y a

A résolu


Mean of a matrix
Determine numeric mean of a matrix

presque 10 ans il y a

A résolu


Non trivial identities - round
Return x after rounding it.

presque 10 ans il y a

A résolu


Find unique number in input
Find value that occurs in odd number of input elements.

presque 10 ans il y a

A résolu


Solve equation numerically
y'=y In order to solve equation using computer, numerical analysis are needed. 1st order Euler's method is one of the metho...

presque 10 ans il y a

A résolu


S-T-R-E-T-C-H I-T O-U-T
You will be given a row of numbers (x), and a single number (n). Your job is to write a script that will stretch out the row of...

presque 10 ans il y a

A résolu


Rotate Matrix Depending on the input
Rotate matrix (CounterClockwise) via 90, 180 or -90 depending on the input Ex. a = [1 2 3; 4 5 6; 7 8 9] b = 90; ...

presque 10 ans il y a

A résolu


Basic commands - What if you can't use mod?
There is a function to calculate remainder after division, but it's not mod. Can you remmeber that function? HINT: Try to lo...

presque 10 ans il y a

A résolu


Basic commands - Where did I install Matlab?
Please make a function, which returns path to Matlab installation folder

presque 10 ans il y a

A résolu


Basic commands - Which licence do you use?
Please ask Matlab which license do you have on computer. Interesting fact: Pay attention what number of license has Cody. ...

presque 10 ans il y a

A résolu


Implement zero-based indexing for Matrices
Given an input vector and position (which is zero based) output the value Example: x = [1 2; 4 5] pos = [0 1] value = 5 ...

presque 10 ans il y a

A résolu


Polynomial evaluation
Compute the value of a polynomial of degree n with coeffcients in vector a, at value x. p(x)=a(1)+a(2)x+a(3)x^2+...+a(n+1)x...

presque 10 ans il y a

A résolu


Basic commands - Excuse me, what time is it?
Please write a function, which will return current hours and minutes, please notice we are using 24h time. Return a vector li...

presque 10 ans il y a

A résolu


Basic commands - Least common multiple
Make a function which will return least common multiple of "a" and "b" Example: a=8; b=6; y=24;

presque 10 ans il y a

A résolu


cross in array
Make a cross from "1" in odd size array. Other value from array should be equal to "0"; As input you get length of side of arra...

presque 10 ans il y a

Charger plus