A résolu


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

environ 10 ans il y a

A résolu


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

environ 10 ans il y a

A résolu


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

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

environ 10 ans il y a

A résolu


double
Return twice the value of the number

environ 10 ans il y a

A résolu


list folder contents
list the contents of a folder

environ 10 ans il y a

A résolu


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

environ 10 ans il y a

A résolu


square root
find square root of a number

environ 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

environ 10 ans il y a

A résolu


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

environ 10 ans il y a

A résolu


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

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

environ 10 ans il y a

A résolu


Basic commands - search path
Please list all search path from Matlab.

environ 10 ans il y a

A résolu


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

environ 10 ans il y a

A résolu


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

environ 10 ans il y a

A résolu


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

environ 10 ans il y a

A résolu


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

environ 10 ans il y a

A résolu


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

environ 10 ans il y a

A résolu


Add 2
Add 2 to the input x

environ 10 ans il y a

Réponse apportée
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...

environ 10 ans il y a | 0

A résolu


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

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

environ 10 ans il y a

A résolu


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

environ 10 ans il y a

A résolu


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

environ 10 ans il y a

A résolu


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

environ 10 ans il y a

A résolu


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

environ 10 ans il y a

A résolu


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

environ 10 ans il y a

A résolu


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.

environ 10 ans il y a

A résolu


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

environ 10 ans il y a

A résolu


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

environ 10 ans il y a

Charger plus