Problema


arrayfun bomb

oltre 3 anni fa | 1 | 3 risolutori

Problema


Magic array teasing num2cell

oltre 3 anni fa | 0 | 1 risolutore

Domanda


How to perform image registration on GPU
imregister does not support GPU unfortunately. Are there any workarounds? I have hundreds of millions of images to register and ...

oltre 3 anni fa | 1 risposta | 0

1

risposta

Inviato


二维 函数 作图
完整绘制任意f(x,y)=0的二维图像,精度可调

oltre 3 anni fa | 1 download |

Thumbnail

Risolto


The most decentralized RGB colors

oltre 3 anni fa

Problema


The most decentralized RGB colors

oltre 3 anni fa | 0 | 2 risolutori

Risolto


Sum all integers from 1 to 2^n
Given the number x, y must be the summation of all integers from 1 to 2^x. For instance if x=2 then y must be 1+2+3+4=10.

oltre 3 anni fa

Risolto


Finding Perfect Squares
Given a vector of numbers, return true if one of the numbers is a square of one of the other numbers. Otherwise return false. E...

oltre 3 anni fa

Risolto


Create times-tables
At one time or another, we all had to memorize boring times tables. 5 times 5 is 25. 5 times 6 is 30. 12 times 12 is way more th...

oltre 3 anni fa

Risolto


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

oltre 3 anni fa

Risolto


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

oltre 3 anni fa

Risolto


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

oltre 3 anni fa

Risolto


Make a checkerboard matrix
Given an integer n, make an n-by-n matrix made up of alternating ones and zeros as shown below. The a(1,1) should be 1. Examp...

oltre 3 anni fa

Risolto


Find all elements less than 0 or greater than 10 and replace them with NaN
Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN. Example: Input ...

oltre 3 anni fa

Risolto


Is my wife right?
Regardless of input, output the string 'yes'.

oltre 3 anni fa

Risolto


Column Removal
Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2 3; 4 5 6]; ...

oltre 3 anni fa

Risolto


Triangle Numbers
Triangle numbers are the sums of successive integers. So 6 is a triangle number because 6 = 1 + 2 + 3 which can be displa...

oltre 3 anni fa

Risolto


Pizza!
Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...

oltre 3 anni fa

Risolto


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

oltre 3 anni fa

Risolto


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

oltre 3 anni fa

Risolto


Add two numbers
Given a and b, return the sum a+b in c.

oltre 3 anni fa

Risolto


Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

oltre 3 anni fa

Risolto


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

oltre 3 anni fa

Domanda


Why the rows are the first dimension of array by design?
I know it's impossible to change now because of the compatibility burden. But why did the first developers decided to use rows a...

oltre 3 anni fa | 1 risposta | 0

1

risposta

Domanda


How to shut down connection to Arduino device when the arduino variable is not in the workspace?
The arduino object is cleared from the workspace, but the connection remains, because I can't create a new connection. MATLAB to...

quasi 4 anni fa | 0 risposte | 0

0

risposte

Domanda


MatFile grows exponentially larger in an empty table replacement loop?
First create a MatFile: a=matfile("Test.mat"); Then create an empty table: a.Data=table('Size',[0 1],'VariableTypes',"uint8")...

quasi 4 anni fa | 1 risposta | 0

1

risposta

Risposto
如何制作彩色幻影坦克?How to generate an ARGB Mirage Tank?
自己解决了这个问题,分享一波~ function varargout = MirageTankV2(Image1,Image2,varargin) %输入两张图,制作幻影坦克! %Image1和Image2三个维度视为列、行、G/AG/RGB/ARG...

oltre 4 anni fa | 0

| accettato

Domanda


如何制作彩色幻影坦克?How to generate an ARGB Mirage Tank?
网上的教程都是黑白的,还要用到PS。我想幻影坦克不就是利用了Alpha通道么?用MATLAB应该也能做吧?求大佬指教! A Mirage Tank is a specially made PNG image that show different col...

oltre 4 anni fa | 1 risposta | 1

1

risposta

Risposto
How to avoid error when whether the function has returns is unknown?
This is my workaround: function Output = PairArrayArrayfun(Function,Array1,Array2,ArrayDimension,UniformOutput) CatDimension=m...

oltre 4 anni fa | 0

| accettato

Domanda


How to avoid error when whether the function has returns is unknown?
function Output = PairArrayArrayfun(Function,Array1,Array2,ArrayDimension,UniformOutput) CatDimension=max(ndims(Array1),ndims(A...

oltre 4 anni fa | 3 risposte | 0

3

risposte

Carica altro