Risolto


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;

circa 10 anni fa

Risolto


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

circa 10 anni fa

Risolto


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

circa 10 anni fa

Risolto


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

circa 10 anni fa

Risolto


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

circa 10 anni fa

Risolto


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

circa 10 anni fa

Risolto


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

circa 10 anni fa

Risolto


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

circa 10 anni fa

Risolto


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

circa 10 anni fa

Risolto


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

circa 10 anni fa

Risolto


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

circa 10 anni fa

Risolto


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

circa 10 anni fa

Risolto


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

circa 10 anni fa

Risolto


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

circa 10 anni fa

Risolto


Standard Deviation
Find standard deviation of an array.

circa 10 anni fa

Risolto


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

circa 10 anni fa

Risolto


Mean of a matrix
Determine numeric mean of a matrix

circa 10 anni fa

Risolto


Non trivial identities - round
Return x after rounding it.

circa 10 anni fa

Risolto


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

circa 10 anni fa

Risolto


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

circa 10 anni fa

Risolto


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

circa 10 anni fa

Risolto


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

circa 10 anni fa

Risolto


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

circa 10 anni fa

Risolto


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

circa 10 anni fa

Risolto


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

circa 10 anni fa

Risolto


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

circa 10 anni fa

Risolto


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

circa 10 anni fa

Risolto


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

circa 10 anni fa

Risolto


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;

circa 10 anni fa

Risolto


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

circa 10 anni fa

Carica altro