解決済み


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