문제를 풀었습니다


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

대략 3년 전

답변 있음
MATLAB GPU Processing: AMD Radeon
To select an NVIDIA GPU 1) Go to site: https://developer.nvidia.com/cuda-gpus, and select a GPU according to your needs https...

대략 3년 전 | 1

답변 있음
Date time conversion problem
Don't specify as T19:00:00. Oly T19:00 is enough. Furthermore use T:HH:mmXXX instead of TH:mm:ss following code works fine. a....

대략 3년 전 | 1

문제를 풀었습니다


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

대략 3년 전

문제를 풀었습니다


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

대략 3년 전

문제를 풀었습니다


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

대략 3년 전

문제를 풀었습니다


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

대략 3년 전

문제를 풀었습니다


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

대략 3년 전

문제를 풀었습니다


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

대략 3년 전

문제를 풀었습니다


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

대략 3년 전

문제를 풀었습니다


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

대략 3년 전

문제를 풀었습니다


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

대략 3년 전

문제를 풀었습니다


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

대략 3년 전

문제를 풀었습니다


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

대략 3년 전

문제를 풀었습니다


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

대략 3년 전

문제를 풀었습니다


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

대략 3년 전

문제를 풀었습니다


Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

대략 3년 전

문제를 풀었습니다


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

대략 3년 전

질문


Has some one implemented SiamMask trackers in matlab?
I found matlab more useful than python for simulating, implementing and compiling visual trackers.A lot of useful trackers built...

대략 3년 전 | 답변 수: 0 | 0

0

답변

답변 있음
I want to plot from -5 to 5 on the x and y, but I am having trouble. Any help?
%Hope you need this. I mean just plot mesh also %mesh Lim=-5:.5:5; %both x,y have same limits [x y]=meshgrid(Lim); % calcula...

대략 3년 전 | 1

답변 있음
Sketching a tangent plane to the given equation
Lim=sqrt(5/2); inc=2*Lim/99; %100 incremets [X,Y] = meshgrid(-Lim:inc:Lim); ZFunc= @(x,y) real(sqrt(5-x.*x-y.*y)); Z=ZFunc(X,...

대략 3년 전 | 1

| 수락됨

답변 있음
How to enter negative values ​​and values ​​greater than 9 in input with string.
%for 10 values, while ii<11 is needed whe we start with ii=1, and %string(teste) to convert character array into string clear,...

대략 3년 전 | 1

| 수락됨

답변 있음
Using fsolve to find circle intersection
convert 2 equations into 2 functions F(1),F(2) . This is one way but other ways like F=@x [ eq1; eq2] can also be used. functio...

대략 3년 전 | 1

답변 있음
Mysterious tangent line on my plots
v(1)=2; %initial v=v0=vi a(1)=9.8; %g n=40; dt=2.5; %use values like dt 0.1, 0.5 1.1,1.5, 2, 2.5, 5 and see the result D=1;r...

대략 3년 전 | 0

답변 있음
How can I fix this error?
function y=Question5(x) y=[]; rows=size(x,1); y(1,:)=x(1,:); for i=2:rows y(i,:)=x(i,:)-x(1,:); end end

대략 3년 전 | 1

| 수락됨

답변 있음
How can I fix this error?
function y=Question5(x,i) y=[]; if i==1 y=x(1,:); else y=x(i,:)-x(1,:); end end

대략 3년 전 | 0

답변 있음
How to select complementary elements from a vector?
%Another but lengthy way is as follows: %Vector 1 d = [3 2 1 5 6 7 8 9 0]; %Another vector containing the indices, which must...

대략 3년 전 | 1

답변 있음
Selecting range of data in a matrix
%Generate M 2784x1 matrix of unformly distributed random intergers ranging from 100 to 9999 M=randi([100 9999],2784,1) rangeA...

대략 3년 전 | 1

답변 있음
IF statement wrongly checked
clear all %close all, %no need to close all, as nothing was opened by this code.. no figure, port etc f = 17.5*10^9; %same ...

대략 3년 전 | 1

답변 있음
Why do I receive an error when I try to use my Matrox morphis with the Image Acquisition Toolbox?
Clearly format : RGB32_-1442840129x1515803904 is invalid It must be like RGB32_720x480. But 1442840129x1515803904 is huge Res...

대략 3년 전 | 0