Solved


Divisible by 2
This is the first problem in a set of "divisible by x" problems. You will be provided a number as a string and the function you ...

2 years ago

Solved


Join Strings with Multiple Different Delimiters
The idea is to form the string S by interleaving the elements of a cell array of strings DELIMITER and another cell array of st...

2 years ago

Answered
How to set the thickness of edge for one marker in plot?
The 'LineWidth' Property controls the thickness of the marker edge. e.g. plot(data(:,1),data(:,2),'o','MarkerSize',5, 'Marke...

2 years ago | 0

| accepted

Answered
Plot time series analysis from multiple netcdf files
Read each netCDF file. Concatenate the arrays. Plot the concatenated arrays.

3 years ago | 0

Answered
How to make a Video from 3D array
You never defined the variable cmap which is supposed to be a color map. Try This: Orig = rand(600,600,28); camp=parula; X =...

3 years ago | 1

Solved


Octoberfest festival
A group of students decided to visit Octoberfest festival. First they ordered one beer, then after half-hour they taken one more...

3 years ago

Submitted


Figure Subaxes Labeler
Labels figure subaxes. The labels can be capital letters, lowercase, numbers, or any user-specified characters.

3 years ago | 1 download |

Thumbnail

Solved


Missing five
Convert decimal numbers to a base-9 notation missing the digit *5* <<http://www.alfnie.com/software/missing5.jpg>> Too man...

3 years ago

Solved


Basic electricity in a dry situation
&#9889 &#9889 &#9889 &#9889 &#9889 &#9889 &#9889 &#9889 &#9889 &#9889 &#9889 &#9889 &#9889 &#9889 &#9889 &#9889 &#9889 &#9889 &#...

3 years ago

Solved


Project Euler: Problem 4, Palindromic numbers
A palindromic number reads the same both ways. The largest palindrome made from the product of two 2-digit numbers is 9009 = 91 ...

3 years ago

Solved


Project Euler: Problem 9, Pythagorean numbers
A Pythagorean triplet is a set of three natural numbers, a b c, for which, a^2 + b^2 = c^2 For example, 3^2 + 4^2 =...

3 years ago

Solved


Project Euler: Problem 8, Find largest product in a large string of numbers
Find the greatest product of five consecutive digits in an n-digit number. 73167176531330624919225119674426574742355349194934...

3 years ago

Solved


Project Euler: Problem 7, Nth prime
By listing the first six prime numbers: 2, 3, 5, 7, 11, and 13, we can see that the 6th prime is 13. What is the Nth prime nu...

3 years ago

Solved


Project Euler: Problem 3, Largest prime factor
The prime factors of 13195 are 5, 7, 13 and 29. What is the largest prime factor of the number being input, input might be ui...

3 years ago

Solved


Project Euler: Problem 5, Smallest multiple
2520 is the smallest number that can be divided by each of the numbers from 1 to 10 without any remainder. What is the smalle...

3 years ago

Solved


Project Euler: Problem 2, Sum of even Fibonacci
Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 te...

3 years ago

Solved


Project Euler: Problem 10, Sum of Primes
The sum of the primes below 10 is 2 + 3 + 5 + 7 = 17. Find the sum of all the primes below the input, N. Thank you <http:/...

3 years ago

Solved


Project Euler: Problem 6, Natural numbers, squares and sums.
The sum of the squares of the first ten natural numbers is, 1^2 + 2^2 + ... + 10^2 = 385 The square of the sum of the first ...

3 years ago

Answered
Plot polygons defined by the specific points on map
There are many ways to do this, but this works. lats= [30 32 31; 29 30 31]; lons = [-102 -103 -104; -100 -103 -101]; [numrows...

3 years ago | 0

Submitted


wetbulb
Calculates the wetbulb temperature given pressure, dewpoint, and temperature

3 years ago | 1 download |

Solved


I Plead the Fifth
Write a function to provide a yes or no answer to the input string. However, it must plead the 5th amendment (return an empty st...

3 years ago

Answered
Image registration with imwarp without scaling?
Try using imregtform with transformType set to rigid.

3 years ago | 0

Answered
Why doesnt int2str return string
It's turned your value into a char, not a string. ischar(int2str(F{1,4})) should return true If you look at the function hel...

3 years ago | 0

| accepted

Answered
find finite numbers in B using logic indexing ?
B_finite_only = B(isfinite(B)); B_finite_only_sum = sum(B_finite_only);

3 years ago | 0

| accepted

Answered
random letter bother upper & lower case
This is a fun puzzle. Upper-case letters run of 65-90 in an ASCII table and lower-case runs from 97 to 122. You can use char to ...

3 years ago | 1

| accepted

Answered
How to obtain indices of cell arrays?
There might be an easier way to do this, but it works. % get the indices of all non-empty cells [row,col] = find(cellfun(@(x) ...

3 years ago | 0

| accepted

Answered
How do I convert a 3x1 cell to a 1x3
The transposition operator will work. a={1,2,3}; % 1x3 cell a = a'; % a now a 3x1 cell a = a'; % a is a 1x3 cell again

3 years ago | 0

Answered
How to Increase the rectangular block marker in legend in bar plot
Better design practice is to label the bars directly rather than keeping the label information off the the side in a legend box ...

3 years ago | 0

Answered
How to define both integer and decimal increment in one for loop?
I'm not clear on what you're looking for. Do you want something like this: span1 = 0:0.1:1; span2 = 3:2:30; span = [span1 spa...

3 years ago | 0

Answered
Indexing all the row data for each column
For a 2D matrix, you can access a row as follows: % Matlab indexing is row major % return single row of matrix A A(1,:) A(2,...

3 years ago | 0

Load more