photo

Tom Holz


Last seen: 6 mesi fa Attivo dal 2012

Followers: 0   Following: 0

Messaggio

Statistica

All
  • Knowledgeable Level 2
  • 3 Month Streak
  • Cody Challenge Master
  • Matrix Manipulation III Master
  • Indexing III Master
  • First Answer
  • Logic
  • Sequences And Series II Master
  • Project Euler I
  • Introduction to MATLAB Master
  • Matrix Manipulation II Master
  • Strings II Master

Visualizza badge

Feeds

Visto da

Domanda


Is there a better way to enforce singleton behavior in AppDesigner applications?
When you click "Run" from inside the App Designer window, any existing instance of that app will be closed before a new one is c...

oltre 4 anni fa | 1 risposta | 3

1

risposta

Risolto


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

oltre 4 anni fa

Risolto


Find the distance between runs
Another question inspired by the <http://uk.mathworks.com/matlabcentral/answers/?s_tid=gn_mlc_an answers forum>: A vector of ...

oltre 4 anni fa

Risolto


Find the same and successive values in a vector
Find the same and successive values in a vector. For example: Input x = [ 1 0 0 1 1 1 1 0 1 1 1 0 0 0 1 ] Start and end...

oltre 4 anni fa

Risolto


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

oltre 4 anni fa

Risolto


How close to a hole
Suppose you have a description of good places (ones) and bad places (zeros). You want to know your distance from a bad place (in...

oltre 4 anni fa

Risolto


How to reverse spdiags ?
The spdiags function extracts all nonzero diagonals from the m-by-n matrix A. So if A=[1 2 3;4 5 6;7 8 9], spdiags(A)=[7 4...

oltre 4 anni fa

Risolto


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

oltre 4 anni fa

Risolto


Find Elements in Range
Based on a question on <http://www.mathworks.com/matlabcentral/answers/ MATLAB Answers>. Find all the elements of a vector wh...

oltre 4 anni fa

Risolto


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

oltre 4 anni fa

Risposto
Grouping into a table
In a situation like this, I usually plan out the table I want to see in advance, and then create variables that I can use to cre...

oltre 4 anni fa | 1

| accettato

Risolto


I've got the power! (Inspired by Project Euler problem 29)
Consider all integer combinations of a^b and b^a for the integer values 2 ≤ a ≤ 4 and 2 ≤ b ≤ 5: 2^2=4, 2^3=8, 2^4=16,...

oltre 4 anni fa

Risolto


Nilpotent matrix
Check if matrix A is <http://mathworks.com/ nilpotent>.

oltre 4 anni fa

Risolto


Energy of an object
Calculate the total mechanical energy of an object. Total Energy= Potential energy + Kinetic energy P.E.=m*g*h K.E.=1/2...

oltre 4 anni fa

Risolto


Shuffle
Shuffle a vector by breaking it up to segments of |n| elements, and rearranging them in a reversed order. For example, the ve...

oltre 4 anni fa

Risolto


Capitilize the first letter of every word in a string
For a given input string, capitalize every letter at the beginning of a word, and transform the rest of the letters to lower-cas...

oltre 4 anni fa

Risposto
Need a better way to loop through a Matrix column and then output the row
Something like this for k = 1:size(Nodal_Coordinates,1) % Find the index of the kth row ind = find(Nodal_Coordi...

oltre 4 anni fa | 1

| accettato

Risposto
Is there a -batch option prior to 2019a, i.e., in 2017a
[ EDIT: the command-line below is wrong. See Edric and Steven's comments for the correct way to emulate batch functionality on o...

oltre 4 anni fa | 0

Risposto
How to change pixels to a different colour with a greyscale image?
Here's a hacky approach that does the job: I = imread('CTimagem.png'); mask = I < 8000; Ired = I; Igreen = I; Iblue = I...

quasi 5 anni fa | 0

| accettato

Risolto


Vector push
Append an element |x| to the end of the vector |v| and return both the extended vector and the new number of its elements. |x| c...

quasi 5 anni fa

Risolto


Approximate the cosine function
Without using MATLAB trigonometric functions, calculate the cosine of an argument |x| to a precision of |0.0001| *Hint:* You ...

quasi 5 anni fa

Risolto


Size of this cup?
The given vector has diameter of the cup in mm sampled at micrometer increments in depth from top to bottom, need output in cc a...

quasi 5 anni fa

Risolto


Simulate one complete step in the Biham–Middleton–Levine traffic model
The <http://en.wikipedia.org/wiki/Biham%E2%80%93Middleton%E2%80%93Levine_traffic_model Biham–Middleton–Levine traffic model> is ...

quasi 5 anni fa

Risolto


Data Regularization
Provided is an m-by-n integer data matrix A whose elements are drawn arbitrarily from a set *S* = [1,2,3,...,S] for any large in...

quasi 5 anni fa

Risolto


Find the Final State of an Abelian Sandpile
Let us define an <http://nautil.us/issue/23/dominoes/the-amazing-autotuning-sandpile Abelian sand pile> as a matrix that is only...

quasi 5 anni fa

Risolto


Fill the Matrix - 2
Input is a column vector and n. n columns will be added to the left of the input column. The first value of the row is the me...

quasi 5 anni fa

Risolto


Fill the matrix - 1
Input is a column vector and n. n columns will be added to the left of the input column. The first value of the row is the s...

quasi 5 anni fa

Risolto


Cookie Cutters
Given a larger and smaller matrix, perform element-by-element multiplication on the smaller matrix and a sub-matrix of the large...

quasi 5 anni fa

Risolto


Construct a "diagAdiag" matrix
Construct a matrix whose elements begin from 1 and end at n^2 with the order of arrangement as shown below: For: n = 4 ...

quasi 5 anni fa

Risolto


Maximum of each diagonal
The well-known <http://www.mathworks.com/help/matlab/ref/max.html max> function can operate along either the rows or the columns...

quasi 5 anni fa

Carica altro