Solved


Select every other element of a vector
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

1 year ago

Solved


Swap the first and last columns
Flip the outermost columns of matrix A, so that the first column becomes the last and the last column becomes the first. All oth...

1 year ago

Solved


Determine if input is odd
Given the input n, return true if n is odd or false if n is even.

1 year ago

Solved


Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

1 year ago

Solved


Fibonacci sequence
Calculate the nth Fibonacci number. Given n, return f where f = fib(n) and f(1) = 1, f(2) = 1, f(3) = 2, ... Examples: Input...

1 year ago

Answered
How to maintain DC link voltage constant in Grid tied Photovoltaic System?
Hi Mohammad If the DC link voltage is not constant in a grid-connected single-phase inverter when implementing current control,...

1 year ago | 1

| accepted

Answered
How to achieve rotation invariant using inertia matrix?
Hi Huahua, When computing the eigenvectors of the inertia matrix to obtain the rotation matrix, it is indeed possible to obtain...

1 year ago | 1

| accepted

Answered
looking for convenient way to extract matrix from 1*n*n
Hi YuLi, You can use squeeze function here: A=zeros(5,5,5); size(A) ;%5x5x5 B=sum(A,1); size(B) %1x5x5 C=squeeze(B); siz...

1 year ago | 1

| accepted

Answered
api.thigspeak vs mqtt.thingspeak
Hi Gulzar, Answering all your queries one by one: Query 1 : Are the two thingspeak APIs for read and write are for HTTP (REST)...

1 year ago | 1

Answered
Turned image into matrix
Hi Putra, Actually here we can use imread function: img1=imread('owl.0.jpg'); img2=imread('owl.1.jpg'); img3=imread('owl.2.jp...

1 year ago | 0

Solved


It dseon't mettar waht oedrr the lrettes in a wrod are.
An internet meme from 2003 (read more here) asserted that readers are relatively insensitive to letter order in words, so long a...

1 year ago

Solved


Determine whether a vector is monotonically increasing
Return true if the elements of the input vector increase monotonically (i.e. each element is larger than the previous). Return f...

1 year ago