Risolto


Replace 0 to NaN!
In given matrix A=[1 nan nan; 2 2 nan; nan nan 1]; replace NaN to 0.

circa 10 anni fa

Risolto


Interpolate data!
There are two data that observed at two different location. x indicate position, d indicate value of data. x=[1 10] d=[2 ...

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


double
Return twice the value of the number

circa 10 anni fa

Risolto


list folder contents
list the contents of a folder

circa 10 anni fa

Risolto


Basic commands - Which matlab files are here?
Please make a function which will list all specific for Matlab files in current folder.

circa 10 anni fa

Risolto


square root
find square root of a number

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 - amount of inputs
Make a function, which will return amount of given inputs Example: amountinput(1,2,4,3,10) -> 5 , because we gave functio...

circa 10 anni fa

Risolto


Basic commands - rounding
make a function which will round to integer, which is nearer to zero. Example x=[-2.5 2]; y=[-2 2];

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 - search path
Please list all search path from Matlab.

circa 10 anni fa

Risolto


BASICS - sum part of vector
Please make a function, where as input you get vector "x" and and vector "c", where in "c" vector you get indexes to sum. Examp...

circa 10 anni fa

Risolto


Find max prime number
Given integer number n. Find the max prime number (mpn) that smaller than or equal to n. Example: n = 10 --> mpn = 7

circa 10 anni fa

Risolto


Calculate the answer to life the universe and everything
<https://en.wikipedia.org/wiki/42_(number)>

circa 10 anni fa

Risolto


All odd - all even
All odd numbers in x are added, while all even numers are subtracted from this. example: x = [1 2 3 4 5]; y = +(1+3+5)-...

circa 10 anni fa

Risolto


Odd times even numbers in a matrix
First count the number of odd numbers in x, then the number of even. Return their product. example: x = [1 2] One odd ...

circa 10 anni fa

Risolto


Add 2
Add 2 to the input x

circa 10 anni fa

Risposto
Assigning dynamic variable in wokspace?
Make sure that old_data is defined before using this commend. Also, old should be 1*1 matrix size. Scale. old=1; old_data...

circa 10 anni fa | 0

Risolto


Calculate polynomial equation
Calculate this equation using given x 1+x+x^2+x^3+....x^99 (hint: use polyval)

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


Change string to number
Change given string to number. (hint: there is already function) Changing from ['1234'] to [1234] is one of example

circa 10 anni fa

Risolto


Sort matrix a according to ascending order of B!
To be specific, A=[9 3 1 3] B=[1 3 2 4] are provided, ascending sorting of B is [B(1) B(3) B(2) B(4)]. Thus ...

circa 10 anni fa

Risolto


Extract a part of matrix!
There is matrix A A=[1 2 3; 4 5 6; 7 8 9] Extract a part of matrix A from (2,2) to (3,3). Result should...

circa 10 anni fa

Risolto


Delete useless part of data
When someone deals with big data. if the person delete useless part, calculation will be more faster than before deleting. De...

circa 10 anni fa

Risolto


Removing vibration!
There are [y] that vary with [x] but y including small useless vibration. x=1:10 y=[1.71 2.03 3.28 4.05 5.10 6.82 7.69 8.3...

circa 10 anni fa

Risolto


Make 3d matrix from other matrix
A=[1 1;2 2]; B=[2 2;3 3]; C=[0 0;1 3]; Using given three matrix, make 3 dimensional matrix [D] by stacking.

circa 10 anni fa

Risolto


Make equation that can express relationship!
Observed data [y] that vary with [x]. Unfortunately, [y] including small amount of errors. x=[1 2 3 4 5 6] y=[2.16 4.97 ...

circa 10 anni fa

Risolto


How to permute given 3d matrix?
A(:,:,1)=[1 3] A(:,:,2)=[2 2] A(:,:,3)=[4 3] Change rows to columns and columns to rows, similar to transpose. Resul...

circa 10 anni fa

Carica altro