Answered

Error using load Unable to read file No such file or directory.

Check if your file is in the current folder dir your_file_name.mat Sometimes the path problem can happen, in that case use thi...

Error using load Unable to read file No such file or directory.

Check if your file is in the current folder dir your_file_name.mat Sometimes the path problem can happen, in that case use thi...

6 mesi ago | 0

Solved

Remove white space from the string

Remove the white spaces (trailing and leading) from the input variable

6 mesi ago

Solved

Sum of diagonal of a square matrix

If x = [1 2 4; 3 4 5; 5 6 7] then y should be the sum of the diagonals of the matrix y = 1 + 4 + 7 = 12

6 mesi ago

Solved

Divide by 4

Given the variable x as your input, divide it by four and put the result in y.

6 mesi ago

Solved

find radius of cone

if Slant height of Cone(I)& hight of Cone(H) given then find radius of the Cone(R) for example I=5,h=4 then the ans R=3;

6 mesi ago

Answered

handling arrays of strings

Signals= cellstr('Signals'); Signals = [Signals, 'SignalName1']; Signals = [Signals, 'SignalName2']; This way it won't merge ...

handling arrays of strings

Signals= cellstr('Signals'); Signals = [Signals, 'SignalName1']; Signals = [Signals, 'SignalName2']; This way it won't merge ...

6 mesi ago | 0

Answered

How to i extract point clouds from a .mat file?

Hi, Could you please provide the relevant data files, if not then you may try the following links. All these are related to e...

How to i extract point clouds from a .mat file?

Hi, Could you please provide the relevant data files, if not then you may try the following links. All these are related to e...

6 mesi ago | 0

Solved

Sort a list of complex numbers based on far they are from the origin.

Given a list of complex numbers z, return a list zSorted such that the numbers that are farthest from the origin (0+0i) appear f...

6 mesi ago

Solved

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

6 mesi ago

Solved

Return the largest number that is adjacent to a zero

This example comes from Steve Eddins' blog: <http://blogs.mathworks.com/steve/2009/05/27/learning-lessons-from-a-one-liner/ Lear...

6 mesi ago

Solved

Find the numeric mean of the prime numbers in a matrix.

There will always be at least one prime in the matrix. Example: Input in = [ 8 3 5 9 ] Output out is 4...

6 mesi ago

Answered

Display Complete output in Command Window

try this fmt = [repmat('%4d ', 1, size(A,2)-1), '%4d\n']; fprintf(fmt, A.');

Display Complete output in Command Window

try this fmt = [repmat('%4d ', 1, size(A,2)-1), '%4d\n']; fprintf(fmt, A.');

6 mesi ago | 0

Answered

Patch extraction from an image

if you want a patch of (size, size) : % Get the size of the image [rows, columns, numberOfColorChannels] = size(yourImage); %...

Patch extraction from an image

if you want a patch of (size, size) : % Get the size of the image [rows, columns, numberOfColorChannels] = size(yourImage); %...

6 mesi ago | 0

| accepted

Answered

Camera Calibration with Two Cameras.

Hi, try first using the detectCheckerboardPoints from matlab for each set of images (check the matlab manual) and then when you...

Camera Calibration with Two Cameras.

Hi, try first using the detectCheckerboardPoints from matlab for each set of images (check the matlab manual) and then when you...

6 mesi ago | 0

Answered

What extension do I use to save my MATLAB file on ATOMS script editor?

you can use emacs and set it to matlab mode, or you can use the matlab online live script editor. https://www.mathworks.com/pro...

What extension do I use to save my MATLAB file on ATOMS script editor?

you can use emacs and set it to matlab mode, or you can use the matlab online live script editor. https://www.mathworks.com/pro...

6 mesi ago | 0

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

6 mesi ago

Solved

Find the two most distant points

Given a collection of points, return the indices of the rows that contain the two points most distant from one another. The inpu...

6 mesi ago

Solved

The Goldbach Conjecture

The <http://en.wikipedia.org/wiki/Goldbach's_conjecture Goldbach conjecture> asserts that every even integer greater than 2 can ...

6 mesi ago

Solved

Indexed Probability Table

This question was inspired by a Stack Overflow question forwarded to me by Matt Simoneau. Given a vector x, make an indexed pro...

6 mesi ago

Solved

Target sorting

Sort the given list of numbers |a| according to how far away each element is from the target value |t|. The result should return...

6 mesi ago

Solved

Which values occur exactly three times?

Return a list of all values (sorted smallest to largest) that appear exactly three times in the input vector x. So if x = [1 2...

6 mesi ago

Solved

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

6 mesi ago

Solved

Who Has the Most Change?

You have a matrix for which each row is a person and the columns represent the number of quarters, nickels, dimes, and pennies t...

6 mesi ago

Solved

Which doors are open?

There are n doors in an alley. Initially they are all shut. You have been tasked to go down the alley n times, and open/shut the...

6 mesi ago

Solved

Remove all the consonants

Remove all the consonants in the given phrase. Example: Input s1 = 'Jack and Jill went up the hill'; Output s2 is 'a ...

6 mesi ago

Solved

Pascal's Triangle

Given an integer n >= 0, generate the length n+1 row vector representing the n-th row of <http://en.wikipedia.org/wiki/Pascals_t...

6 mesi ago

Solved

Summing digits

Given n, find the sum of the digits that make up 2^n. Example: Input n = 7 Output b = 11 since 2^7 = 128, and 1 + ...

6 mesi ago

Solved

Bullseye Matrix

Given n (always odd), return output a that has concentric rings of the numbers 1 through (n+1)/2 around the center point. Exampl...

6 mesi ago