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

circa 3 anni fa

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

circa 3 anni fa | 1

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

circa 3 anni fa | 1

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

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

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

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

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

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

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

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

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

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

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

circa 3 anni fa

Risolto


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

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

circa 3 anni fa

Risolto


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

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

circa 3 anni fa

Domanda


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

circa 3 anni fa | 0 risposte | 0

0

risposte

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

circa 3 anni fa | 1

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

circa 3 anni fa | 1

| accettato

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

circa 3 anni fa | 1

| accettato

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

circa 3 anni fa | 1

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

circa 3 anni fa | 0

Risposto
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

circa 3 anni fa | 1

| accettato

Risposto
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

circa 3 anni fa | 0

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

circa 3 anni fa | 1

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

circa 3 anni fa | 1

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

circa 3 anni fa | 1

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

circa 3 anni fa | 0