MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn moreOpportunities for recent engineering grads.

Apply Today**New to MATLAB?**

1Rank

19Badges

22960Score

Alfonso Nieto-Castanon submitted a Comment to Problem 42480. Go back n times

I imagine you are going to need to use "isequalwithequalnans" in your testsuite instead of "isequal" for this problem

55 minutes ago

Alfonso Nieto-Castanon submitted a Comment to Problem 42481. Low level NaN

there seem to be some problems with the testsuite, in particular some of those matrices contain different number of elements per row (e.g. perhaps "5,7" should be "5.7"). I guess the same applies to your example dataset where the last row contains only four numbers instead of five?

59 minutes ago

Alfonso Nieto-Castanon received Modeling and Simulation Challenge Master badge

6 hours and 32 minutes ago

Alfonso Nieto-Castanon submitted Solution 708790 to Problem 42479. Compute the step response of a DC motor

16 hours and 27 minutes ago

Alfonso Nieto-Castanon submitted Solution 708789 to Problem 42479. Compute the step response of a DC motor

16 hours and 30 minutes ago

Alfonso Nieto-Castanon submitted Solution 708780 to Problem 42478. Make a low pass filter

16 hours and 52 minutes ago

Alfonso Nieto-Castanon submitted Solution 708779 to Problem 42477. Model a simple pendulum

16 hours and 56 minutes ago

Alfonso Nieto-Castanon submitted Solution 708777 to Problem 42476. Model a falling body

17 hours and 27 minutes ago

Alfonso Nieto-Castanon submitted Solution 708776 to Problem 42474. Model a mass spring system

17 hours and 39 minutes ago

Alfonso Nieto-Castanon submitted Solution 708774 to Problem 42475. Add damping to a mass spring system

17 hours and 44 minutes ago

Alfonso Nieto-Castanon submitted Solution 708766 to Problem 42473. Produce a Fibonacci sequence

18 hours and 19 minutes ago

Alfonso Nieto-Castanon submitted Solution 708623 to Problem 42447. Define the operators of function_handles

on 30 Jul 2015 at 18:52

Alfonso Nieto-Castanon submitted Solution 708618 to Problem 42462. Dealing with correlation results!

on 30 Jul 2015 at 18:50

Alfonso Nieto-Castanon submitted Solution 708611 to Problem 42463. Calculate trends in time series

on 30 Jul 2015 at 18:43

Alfonso Nieto-Castanon submitted Solution 708609 to Problem 42444. Add two hex numbers

on 30 Jul 2015 at 18:42

Alfonso Nieto-Castanon submitted Solution 708604 to Problem 42445. Converter temp 0 to 200 degree C to 4 to 20mA

on 30 Jul 2015 at 18:40

Alfonso Nieto-Castanon submitted Solution 708602 to Problem 42461. This is a palindrome and so am I

on 30 Jul 2015 at 18:39

Alfonso Nieto-Castanon submitted Solution 708503 to Problem 42457. Get the array of sum for three consecutive numbers in an array

on 30 Jul 2015 at 17:04

Alfonso Nieto-Castanon submitted Solution 708501 to Problem 42451. Vertically stack two vectors

on 30 Jul 2015 at 17:02

Alfonso Nieto-Castanon submitted Solution 708500 to Problem 42450. Summation of array

on 30 Jul 2015 at 17:02

Alfonso Nieto-Castanon submitted Solution 708499 to Problem 42456. Create an array (n,n) where only diagonal elements are '1' and others are '0'

on 30 Jul 2015 at 17:01

Alfonso Nieto-Castanon submitted Solution 708497 to Problem 42458. Determine the mean of matrix

on 30 Jul 2015 at 17:00

Alfonso Nieto-Castanon submitted Solution 708212 to Problem 42472. Counting pulses in a signal

on 30 Jul 2015 at 6:44

Alfonso Nieto-Castanon submitted Solution 708204 to Problem 42471. Make a full wave rectifier

on 30 Jul 2015 at 6:10

Alfonso Nieto-Castanon submitted Solution 708203 to Problem 42471. Make a full wave rectifier

on 30 Jul 2015 at 6:07

Alfonso Nieto-Castanon submitted Solution 708200 to Problem 42470. Make a half wave rectifier

on 30 Jul 2015 at 6:00

Alfonso Nieto-Castanon submitted Solution 708197 to Problem 42466. Add a block to a model

on 30 Jul 2015 at 5:49

Alfonso Nieto-Castanon submitted Solution 708196 to Problem 42468. Produce a sine wave

on 30 Jul 2015 at 5:48

Alfonso Nieto-Castanon submitted Solution 708195 to Problem 42465. Connect blocks in a model

on 30 Jul 2015 at 5:48

Alfonso Nieto-Castanon submitted Solution 708194 to Problem 42469. Produce a cosine wave

on 30 Jul 2015 at 5:44

Alfonso Nieto-Castanon submitted Solution 708193 to Problem 42467. Add offset to a signal

on 30 Jul 2015 at 5:41

Alfonso Nieto-Castanon submitted Solution 707589 to Problem 42460. The cake is a lie...

on 28 Jul 2015 at 21:28

Alfonso Nieto-Castanon submitted a Comment to Problem 42460. The cake is a lie...

thanks for the clarification!

on 28 Jul 2015 at 21:21

Alfonso Nieto-Castanon submitted a Comment to Problem 42460. The cake is a lie...

for those detail-oriented (i.e. picky) I imagine cuts need to be straight lines, and the cake is two-dimensional?

on 25 Jul 2015 at 21:01

Alfonso Nieto-Castanon submitted Solution 700993 to Problem 42438. row removal

on 14 Jul 2015 at 22:00

Alfonso Nieto-Castanon submitted a Comment to Solution 695695

a small follow-up: I replicated this behavior (both in R2008b and R2015a) and regexprep dynamic ${ } operator seem to have access to *both* variables in the currently active workspace as well as in its parent workspace... never would have guessed that, thanks LY!

on 4 Jul 2015 at 20:55

Alfonso Nieto-Castanon submitted a Comment to Solution 695695

+1 Nice cheat! I cannot really figure this one out. Seems like regexprep has access to a variable outside of its current workspace? (I am not on my computer right now, is this cody-specific or does this replicate in other settings?)

on 4 Jul 2015 at 17:50

Alfonso Nieto-Castanon liked Problem 42248. Return fibonacci sequence do not use loop and condition version 3

on 3 Jul 2015 at 2:46

Alfonso Nieto-Castanon submitted Solution 695518 to Problem 42248. Return fibonacci sequence do not use loop and condition version 3

on 3 Jul 2015 at 2:45

Alfonso Nieto-Castanon submitted Solution 695515 to Problem 42086. sum of digits

on 3 Jul 2015 at 2:33

Alfonso Nieto-Castanon submitted Solution 695514 to Problem 42248. Return fibonacci sequence do not use loop and condition version 3

on 3 Jul 2015 at 2:31

Alfonso Nieto-Castanon submitted Solution 695507 to Problem 42421. Reverse a string

on 3 Jul 2015 at 1:49

Alfonso Nieto-Castanon submitted Solution 695506 to Problem 42421. Reverse a string

on 3 Jul 2015 at 1:49

Alfonso Nieto-Castanon submitted Solution 695502 to Problem 42438. row removal

on 3 Jul 2015 at 1:46

Alfonso Nieto-Castanon submitted Solution 695496 to Problem 42442. Determine if input is divisible by three.

on 3 Jul 2015 at 1:33

Alfonso Nieto-Castanon submitted a Comment to Problem 42418. Divisible by 16

perhaps less interesting but I guess you could do the same with powers of 5, iff the last X digits of a number are divisible by 5^x, then the entire number is divisible by 5^x...

on 29 Jun 2015

Alfonso Nieto-Castanon submitted a Comment to Problem 42418. Divisible by 16

@James: nice trick! (and I guess the proof arises from 10^x being always exactly divisible by 2^x, so "iff" also applies?)

on 29 Jun 2015