Solved


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

6 years ago

Solved


Evened up (or not)
You will be provided with an array or matrix that contains various numbers, in addition to an evening variable, e, set to 1 or 0...

6 years ago

Solved


De-primed
Write a function that will multiply every prime number in the array or matrix by two, leaving all other numbers the same, and re...

6 years ago

Solved


Big numbers, least significant digits
Given two numbers, x and n, return the last d digits of the number that is calculated by x^n. In all cases, d will be the number...

6 years ago

Solved


Bit calculation
Give me the count of numbers from 1 to n having their last two bits as 0. For example function y = ret_count(4) y = x...

6 years ago

Answered
Scattered data 4D interpolation
https://www.mathworks.com/help/matlab/ref/griddatan.html

6 years ago | 1

| accepted

Answered
Pairwise distance between two matrices of 3 columns and 1911 rows.
Sounds like you need to do the sum over the second dimension of (A-B).^2; that is, to sum the sqaured differences of positions i...

6 years ago | 1

| accepted

Answered
Extraction from the double cell?
There seems to be some confusion about which variables are character arrays and which are doubles. For instance, in this line: ...

6 years ago | 0

Answered
plot title including _
You may try setting the title's interpreter to 'none': title(fname,'Interpreter','none');

6 years ago | 0

Answered
Index exceeds the number of array elements (2).
This error happens the second time through the while loop (that is, i == 3). The cause of the error is that Thta only has 2 elem...

6 years ago | 0

Answered
appending a column to a cell array
added = [tothis [addheader; addthis]];

6 years ago | 0

Answered
Plotting in a 3D space
This will plot a line segment from the origin to the point (1,0,-1): plot3([0 r(1)],[0 r(2)],[0 r(3)]);

6 years ago | 0

| accepted

Answered
'inpolygon' returns zeros logical variable (R2019b, Win10)
Note that longitude is horizontal and latitude is vertical, so you'd need to swap LAT and LON in your call to inpolygon. (Like y...

6 years ago | 1

| accepted

Answered
How to delete the ellipse of the previous state
One way might be to turn hold off before plotting your ellipse(s). If you change this: axes(handles.axes1) hold on to this: ...

6 years ago | 1

Answered
how to read specified letters from ascii file
inputFileName = 'C:\input.txt'; outputFileName = 'C:\output.txt'; fileID = fopen(inputFileName,'r'); A = fread(fileID,'*cha...

6 years ago | 0

| accepted

Answered
Cell array saving in real-time
Will save work?

6 years ago | 0

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 years ago

Solved


Sum of series VII
What is the sum of the following sequence: Σ(km^k)/(k+m)! for k=1...n for different n and m?

6 years ago

Solved


Sum of series VI
What is the sum of the following sequence: Σk⋅k! for k=1...n for different n?

6 years ago

Solved


Sum of series V
What is the sum of the following sequence: Σk(k+1) for k=1...n for different n?

6 years ago

Solved


Sum of series IV
What is the sum of the following sequence: Σ(-1)^(k+1) (2k-1)^2 for k=1...n for different n?

6 years ago

Solved


Sum of series III
What is the sum of the following sequence: Σ(2k-1)^3 for k=1...n for different n?

6 years ago

Solved


Sum of series II
What is the sum of the following sequence: Σ(2k-1)^2 for k=1...n for different n?

6 years ago

Solved


Sum of series I
What is the sum of the following sequence: Σ(2k-1) for k=1...n for different n?

6 years ago

Answered
How to compare columns of array in "if else" statement
FlagData(FlagData(:,1) == 0 & FlagData(:,2) > 0,3) = NaN;

6 years ago | 0

| accepted

Solved


Height of a right-angled triangle
Given numbers a, b and c, find the height of the right angled triangle with sides a and b and hypotenuse c, for the base c. If a...

6 years ago

Solved


There are 10 types of people in the world
Those who know binary, and those who don't. The number 2015 is a palindrome in binary (11111011111 to be exact) Given a year...

6 years ago

Solved


Find the longest sequence of 1's in a binary sequence.
Given a string such as s = '011110010000000100010111' find the length of the longest string of consecutive 1's. In this examp...

6 years ago

Solved


Find out sum and carry of Binary adder
Find out sum and carry of a binary adder if previous carry is given with two bits (x and y) for addition. Examples Previo...

6 years ago

Solved


Convert given decimal number to binary number.
Convert given decimal number to binary number. Example x=10, then answer must be 1010.

6 years ago

Load more