Answered
Why am I not getting a colorcoded plot?
You are using plot3 to make your graph, in that case, you can not change the color of the points in line individually. Use scat...

12 jours ago | 0

Solved


Longest Divisor Run
Given the vector a, find the longest run of consecutive numbers that can be evenly divided by the same number d where d > 1. ...

13 jours ago

Answered
Problem with output of fprintf command
You can make it in a single line. (Though 200 glycol feels a bit weird, you might wanna add an unit) input(2) function input(...

13 jours ago | 0

Answered
How do I plot a function with multiple outputs?
You are calling the function rwABRule incorrectly. Also, there's a spelling mistake in your function call. [VVectA3,VVectB3] ...

14 jours ago | 1

| accepted

Answered
How to store n iterations of randomly generated matrices
n = 10 ; bounds = [1 100] ; %interval over which the random number generator will produce values randA_all=zeros(3,3,n); for ...

14 jours ago | 0

Solved


Consecutive Equation Times (of the day)
Many times throughout the day can represent mathematical equations. In this problem, we focus on the largest consecutive run of ...

15 jours ago

Answered
Sorting return by dates
%to get the year of a date [year,~,~] = datevec(727594) %storing the years in y (months and dates are not necessary) %dates a...

15 jours ago | 0

Solved


Binary Neighbourhood
Given a natural number reorder its binary form to create another number, closest to the given one. Examples: * 1 gives 2, ...

16 jours ago

Answered
How do I concatenate cell arrays and line up the rows according to matching items in a column?
Sort by IDs and then join [~,idhe]=sort(string(high_empathy_ID_factors(:,1))); high_empathy_ID_factors=high_empathy_ID_factors...

17 jours ago | 0

Answered
Find overlapping days across two datetime variables
%random data dt1=datetime(2022,6,1):datetime(2022,7,27); %1st June to Today dt2=datetime(2022,7,1):datetime(2022,9,1); %1st Ju...

17 jours ago | 1

| accepted

Solved


Sleeping Queens 1
My youngest daughter received a card game named Sleeping Queens for Christmas this year, and has been playing it nearly non-stop...

17 jours ago

Solved


Big numbers, repeated least significant digits
This problem builds off of <http://www.mathworks.com/matlabcentral/cody/problems/3077-big-numbers-least-significant-digits/ Prob...

17 jours ago

Solved


Equation Times (of the day)
Many times throughout the day can represent mathematical equations. In this problem, we focus on times that include the four bas...

18 jours ago

Solved


Arrange the names in alphabetical order (2)
Arrange the list of names in alphabetical order, following the German standard <https://de.wikipedia.org/wiki/Alphabetische_Sort...

18 jours ago

Solved


Gaussian elimination
Get the Gussian elimination of the Matrix Given You cannot use built-in Matlab functions triu :)

19 jours ago

Solved


Measure a Special Distance
Given an n-by-2 matrix with positive and negative numbers, return an n-by-n matrix in the manner of the function template.

19 jours ago

Solved


Spot the rectangle (Part 2)
This problem is related to the <http://bit-player.org/2009/the-17x17-challenge 17x17 challenge>. See also <http://www.mathworks....

20 jours ago

Solved


Spot the rectangle
This problem is related to the 17x17 challenge. Given a matrix filled with ones and zeros, determine whether or not any rectangl...

20 jours ago

Solved


Spiral In
Create an m by n matrix filled with sequential integers starting from 1 and arranged in a counterclockwise spiral that hugs the ...

21 jours ago

Solved


Matrix Rotation
You are given a 2D matrix of dimension [m,n] and a positive integer r. You have to rotate the matrix r times and print the resul...

21 jours ago

Answered
How to generate random variable theta for F(theta)=N(1 - (mu*B)/(k*T)*cos(theta)). For N=1 and mu*B/k*T=0.01
syms theta fplot(1-0.01*cosd(theta)) xlim([0 180]) ylim([0.99 1.015])

22 jours ago | 1

Answered
finding the orthogonal vectors for a series of vectors
Another method will be - for i=1:size(vec,1) v=vec(i,:); %generate a random vector r=rand(1,3); %check it ...

22 jours ago | 3

Solved


Decipher the message - same key for all digits
You will be given a input number (eg) x='gdkkn' you have to figure out the dechiper key and match it with given input and deci...

22 jours ago

Answered
Plotting performance vs inlet temp for jet engine and measuring performance as dh as shown. What am I doing wrong?
The for loop indexing is incorrect close all clear all P1 = 101 ;%pressure in kpa T1 = 298;%temperature in kelvin n = 1.4; ...

23 jours ago | 1

Solved


Decimation - Optimized for speed
This problem is similar to http://www.mathworks.com/matlabcentral/cody/problems/1092-decimation, only this time the score will b...

23 jours ago

Solved


Decimation
When dealing to the Roman Army, the term decimate meant that the entire unit would be broken up into groups of ten soldiers, and...

23 jours ago

Solved


Josephus Survivor
The <http://en.wikipedia.org/wiki/Josephus_problem Josephus Challenge> is to find the position that is the last remaining when e...

23 jours ago

Answered
To split class in a cell array
Looks like a simple variable assignment %random data y=num2cell(rand(10,30)) class_1 = y(:,1:15) class_2 = y(:,16:30) %if y...

24 jours ago | 1

| accepted

Solved


Permute the unique values of a vector without sorting
Given a vector A, return the matrix B, wherein each row contains a permutation of the unique values in original vector while ret...

24 jours ago

Answered
Splitting n by 1 matrix
mat2cell approach (gives 1x24 instead of 24x1) A=transpose(1:12552); B=mat2cell(reshape(A,24,[])',ones(1,12552/24)) B{3}'

26 jours ago | 0

Load more