Gelöst


Adding each element
Add the each element of the matrix.

etwa 10 Jahre vor

Gelöst


Create cosine function out of sine
Please dont use cos(x) directly

etwa 10 Jahre vor

Gelöst


Get 1-4-3-4-4
Get the value of the indices in the title and assign it to an array

etwa 10 Jahre vor

Gelöst


Calculate some equation
Using given inputs x and z, make two outputs that are y1 = (xz)/(x/z)^2 + 14x^2 - 0.8z^2 y2 = x^z - z^x + (x/z)^2 - (z/x...

etwa 10 Jahre vor

Gelöst


Calculate area of sector
A=function(r,seta) r is radius of sector, seta is angle of sector, and A is its area. Area of sector A is defined as 0.5*(r^2...

etwa 10 Jahre vor

Gelöst


Change matrix to vector
Vector is a matrix whose size is 1 x n or n x 1. Change matrix to vector. x = 4 3 5 1 ...

etwa 10 Jahre vor

Gelöst


Convert radians to degrees
Given input in radians, output to degrees

etwa 10 Jahre vor

Gelöst


Convert degrees to radians
Given input in degrees, output to radians

etwa 10 Jahre vor

Gelöst


Rotate matrix by -90 degrees
Rotate a Matrix by -90 degrees Example: X = 1 2 3 4 5 6 7 8 9 output = 7 4 ...

etwa 10 Jahre vor

Gelöst


multiply an array by its position number
You have given an array. Multiply an array by its position number

etwa 10 Jahre vor

Gelöst


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

etwa 10 Jahre vor

Gelöst


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

etwa 10 Jahre vor

Gelöst


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

etwa 10 Jahre vor

Gelöst


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

etwa 10 Jahre vor

Gelöst


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

etwa 10 Jahre vor

Gelöst


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;

etwa 10 Jahre vor

Gelöst


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

etwa 10 Jahre vor

Gelöst


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

etwa 10 Jahre vor

Gelöst


Counting candies
In a classroom of |'n'| children, every even numbered child gets one big candy and every odd numbered child gets two small candi...

etwa 10 Jahre vor

Gelöst


Euclidean distance from a point to a polynomial
A not uncommon problem in the area of computational geometry is to find the closest point to a straight line from a given point,...

etwa 10 Jahre vor

Frage


Number of leading zeroes as a variable
I know that to print out a number with a certain amount of leading zeroes, you are supposed to use %0X, where X is the number of...

etwa 10 Jahre vor | 2 Antworten | 0

2

Antworten

Beantwortet
reshape 4D matrix into 2D matrix
Does this do what you're looking for? reshape(squeeze(x(:,1,:,:)),25,30) where x is your 5x5x5x30 matrix?

etwa 10 Jahre vor | 0

Frage


Copying Profile results into Word/Excel
I recently spent a full day running a large amount of simulations of a code through the MATLAB Profiler to see where things need...

etwa 10 Jahre vor | 1 Antwort | 0

1

Antwort

Gelöst


Weighted Convolution
Given two input vectors x = [x_1, x_2, ..., x_K] and y = [y_1, y_2, ..., y_K] of equal length, compute the weighted convolution ...

etwa 10 Jahre vor

Gelöst


Freebies anyone? No!!!!
Feel free to copy paste all the tests and voila you solved the problem

etwa 10 Jahre vor

Gelöst


Some tweaks in summation, Can you decode? :)
There are some tweaks in summation that you might observe via test suites Try if you can

etwa 10 Jahre vor

Gelöst


Stubborn guy
In a vote, the stubborn guy always votes differently. for example if the other vote is: x=true then he votes false

etwa 10 Jahre vor

Gelöst


BaeIsAlwaysRight
Output yes whatever bae says

etwa 10 Jahre vor

Gelöst


Odd times 3
Given a input matrix x, multiply all odd values by 3. Even values remain the same. example: x = [1 2 3 4 5;... 6 7...

etwa 10 Jahre vor

Gelöst


Non trivial identities - summation
Return x by adding a random number to it.

etwa 10 Jahre vor

Mehr laden