Gelöst


Rotate a Matrix
Input a Matrix x, Output y is the matrix rotating x 90 degrees clockwise

mehr als 4 Jahre vor

Veröffentlicht


Lightning Talks at the Japan EXPO
I recently learned about something fun: customer lightning talks at the Japan MATLAB EXPO 2021. A lightning talk is a...

mehr als 4 Jahre vor

Thumbnail

Gelöst


matrix zigzag
Unfold a 2-D matrix to a 1-D array in zig-zag order, e.g., for matrix [ 1 2 3 ; 4 5 6 ; 7 8 9 ] the resulting 1-...

mehr als 4 Jahre vor

Veröffentlicht


Update Heroes: Evergreen Contributions to the File Exchange
File Exchange developer Randy Souza (you've heard of Souza's Law, right?) was looking at some file updates coming through...

mehr als 4 Jahre vor

Thumbnail

Veröffentlicht


On the Importance of Software to Research
This week's post is by Mike Croucher. Mike is a member of the Customer Success Engineering team in the UK, working with...

fast 5 Jahre vor

Thumbnail

Veröffentlicht


Cody News: Test That Code Before You Submit It!
See this? This is so cool. What you're looking at is the new Scratch Pad area for Cody. It will make playing Cody more...

fast 5 Jahre vor

Thumbnail

Gelöst


Neither minima nor maxima
Input v is a vector. Return all the elements of v which are not a local minimum or maximum. Example: v = [1 2 3 4 5] Ou...

fast 5 Jahre vor

Veröffentlicht


Community Q&A – Akrem Hadji
Akrem Hadji is a top contributor to Cody.  Here is a Q&A I did with Akrem who is a Telecommunications Engineer in...

fast 5 Jahre vor

Thumbnail

Gelöst


Longest Sequence of NaNs
In an array return the length of longest sequence of nans for each column. x = [ 2 3 1 2 5 6; nan nan 5 n...

etwa 5 Jahre vor

Veröffentlicht


Live Editor in MATLAB Mobile
The Live Editor combines code, output, and formatted text in a single executable notebook. Last year, we introduced this...

etwa 5 Jahre vor

Thumbnail

Veröffentlicht


Happy Valentines Day!
What to do? It's nearly February 14th, and what, oh what will you get your sweet one? Your very own osculating curve? The...

etwa 5 Jahre vor

Thumbnail

Veröffentlicht


MATLAB Drive and British Coal
The other day I received this email from my friend Jos. Very thoughtful of him! After a recent meeting, we were...

etwa 5 Jahre vor

Thumbnail

Veröffentlicht


Virtual Workshops with Black Girls Code and MissionSAFE
Guest bloggers Ishaani, a MathWorks UX Specialist, and Vidya Gopalakrishnan, a MathWorks Senior Technical Writer, bring you...

etwa 5 Jahre vor

Thumbnail

Veröffentlicht


How Long Is a Winter’s Day?
Happy December! The days sure seem longer in the winter. Of course, there are fewer hours of daylight. But the actual span...

etwa 5 Jahre vor

Thumbnail

Gelöst


Fix the last element of a cell array
Note: this is lifted directly from <http://www.mathworks.com/matlabcentral/answers/82825-puzzler-for-a-monday Puzzler for a Mond...

etwa 5 Jahre vor

Gelöst


Convert a numerical matrix into a cell array of strings
Given a numerical matrix, output a *cell array of string*. For example: if input = 1:3 output is {'1','2','3'} whic...

etwa 5 Jahre vor

Gelöst


Proper Factors
Generate the proper factors of input integer _x_ and return them in ascending order. For more information on proper factors, ref...

etwa 5 Jahre vor

Gelöst


QWERTY coordinates
Given a lowercase letter or a digit as input, return the row where that letter appears on a <http://en.wikipedia.org/wiki/Keyboa...

etwa 5 Jahre vor

Gelöst


QWERTY Shift Code Decoder
Decode a string encoded using the QWERTY shift code. QWERTY shift code is where the message was touch typed but with an offse...

etwa 5 Jahre vor

Gelöst


Word Distance - Sum
Let's suppose that the distance of a word can be calculated by summing the differences between its letters, having assigned the ...

etwa 5 Jahre vor

Gelöst


Count letters occurence in text, specific to words with a given length.
Build a function with two input arguments: a string and a word length (number of letters), that outputs a vector of counts of th...

etwa 5 Jahre vor

Gelöst


Data decompression
A chunk of data is to be 'decompressed'. Input: * compressed: a row vector of uint8 values. This is the compressed data. ...

etwa 5 Jahre vor

Gelöst


Alphabetize by last name
Given a list of names in a cell array, sort the list by the last name. So if list = {'Barney Google','Snuffy Smith','Dagwood ...

etwa 5 Jahre vor

Veröffentlicht


Savitha Talks About Kubernetes
I’m happy this week to be talking to a fellow MathWorker: Savitha Raghunathan. Why, you may ask, should I use the MATLAB...

mehr als 5 Jahre vor

Thumbnail

Gelöst


Elements with highest local average
Input v is a row vector such that length(v)>3. Consider a sliding window of length 3 that is used to calculate the local average...

mehr als 5 Jahre vor

Gelöst


Combine Data With Gaps
Combine data sets a and b where the datasets have "gaps" or unique points. Example: Input a = [1,0; 2,1; ...

mehr als 5 Jahre vor

Gelöst


Split array into pieces according to corresponding array
An array x of length n has values 1...m with each value appearing at least once. The values are sorted (n>=m). A second...

mehr als 5 Jahre vor

Gelöst


Sum my indices
Given inputs M and N (in that order), output an MxN matrix whose entries are equal to the sum of their indices. Example input...

mehr als 5 Jahre vor

Gelöst


Find indices of diagonal elements
Given a matrix A and a diagonal index d (where 0 indicates the main diagonal and off-diagonals are identified by positive and n...

mehr als 5 Jahre vor

Gelöst


Hard limit function
Classify x data as if x>=0 then y=1 if x<0 then y=0 Example x = [ -2 -1 0 1 2] y = [ 0 0 1 1 1]

mehr als 5 Jahre vor

Mehr laden