Solved


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

4 years ago

Solved


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

4 years ago

Solved


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

4 years ago

Solved


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

4 years ago

Solved


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

4 years ago

Solved


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

4 years ago

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

4 years ago

Solved


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

4 years ago

Solved


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

4 years ago

Question


not providing a fixed input
suppose I write a code: function c=sum_of_two_numbers(a,b) a=7; b=8; c=a+b; end here I have provided values of a an...

4 years ago | 1 answer | 0

1

answer

Question


I was having problem in finding description of the function "mwltelibrary". How can I know about it??
When I used function "lteTurboEncode" and went through it's internal program I found that a function "mwltelibrary" is present ...

4 years ago | 1 answer | 0

1

answer

Question


storing values from a for loop
clc; clear all; close all; for k=-2:0.5:2 x=k; x(k)=x; end I have to store values of x from -2...

4 years ago | 1 answer | 0

1

answer

Solved


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

5 years ago

Solved


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

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

5 years ago

Question


Regarding Purchase of Camera
Hello Everyone. I am doing a project on Sign Language which will be encompassing the field of Computer vision, Image Processing,...

5 years ago | 1 answer | 0

1

answer

Question


solving equation when values of input are constantly varying
i have an equation 't = 0.01 * P^(-0.25) exp( 6000/tg)', where p and tg are varying everytime. finally i have 32 values of tg an...

5 years ago | 0 answers | 0

0

answers

Question


problem in calculating mean from the required element of matrix??
I have a matrix mat6 of dimension 1-by-210. j =210. I am applying a threshold condition on mat6 and then i need to calculate the...

5 years ago | 2 answers | 0

2

answers

Question


Print a statement to the Command Window
I am writing a program. I want to display the statement 'job done' as the output in the Command Window. How can I do it?

5 years ago | 5 answers | 4

5

answers

Question


gray2rgb conversion
how can I convert a grayscale image into RGB image?? Thanks navneet nayan

5 years ago | 1 answer | 0

1

answer

Answered
Optical flow vectors for a 3D Image
to calculate optical flow vectors, we should use: flow = estimateFlow(opticFlow,I) where I(the input image) is a gray sc...

5 years ago | 0

Question


how can we see the inner programming of any function??
i am using the function "gradient". i want to see it's inner programming. can i see it. thanks Navneet nayan

5 years ago | 2 answers | 0

2

answers

Question


how to extract and save frames in a video ??
I am using the following code to read and extract entire frames of a video, but problem is the frames are stored in "multi" as s...

5 years ago | 5 answers | 1

5

answers

Question


getting absurd result in For loop
multi = dir('D:\testing\abrupt\*.jpg'); for i = 1:2:length(multi) filename = strcat('D:\testing\abrupt\',num2str(i),...

5 years ago | 2 answers | 0

2

answers

Question


problem in for loop
for i = 1:2:n filename = strcat('I:\testing\8y\',num2str(i),'.jpg'); I = imread(filename); ...

5 years ago | 2 answers | 0

2

answers

Answered
How can I show the values from vision.CascadeObjectDetector?
hello Alvindra, what i know about vision.CascadeObjectDetector is u can only change it's parameters like classification model, s...

5 years ago | 0

Question


how can I resolve the error related to corr2 in my code ??
my code is: clc; clear all; close all; tic; i1 = imread('G:\testing\abrupt\ed1ac\1.jpg'); i2 = imread('G:\te...

5 years ago | 1 answer | 0

1

answer

Question


how can we find the percentage of similarity between two matrices ??
i have two 1280-by-720 matrices. after looking the elements of those two matrices, both appears nearly equal. please tell me how...

6 years ago | 2 answers | 0

2

answers

Question


how can i find the location of the largest element in a 2-D matrix not in a column or row matrix?
I was getting a 1080-by-1920 matrix and i have to find the location of the largest value of the matrix, so how can i find it. I ...

6 years ago | 1 answer | 0

1

answer