Solved

Find matching parenthesis

One of the most indispensable things about a great text editor for programming is the ability to quickly jump between matching p...

2 months ago

Solved

Decimal Comparison

*Background* A utility of particular interest to Cody and other MATLAB ventures is comparing the equality of two numbers. In ...

2 months ago

Solved

Test if a Number is a Palindrome without using any String Operations

*Description* Given an integer _X_, determine if it is a palindrome number. That is, _X_ is equal to the _X_ with the digits ...

2 months ago

Solved

Increment a number, given its digits

Take as input an array of digits (e.g. x = [1 2 3]) and output an array of digits that is that number "incremented" properly, (i...

2 months ago

Solved

ASCII Birthday Cake

Given an age and a name, give draw an ASCII birthday cake. For example, given the name "CODY" and the age 5, return a string wit...

2 months ago

Question

How can I invoke a function from within App Designer when using a DeleteFcn or CloseRequestFcn from a MATLAB figure that is separate from the App GUI?

I am trying to find a work around to the lack of axes callback usage from within an App Deisnger axes. Ultimately, I want to ass...

3 months ago | 0 answers | 0

Answered

How to skip some strings in a text file

If you do not have a set number of header lines, but know the content of the last header line, you can read a portion of the fil...

How to skip some strings in a text file

If you do not have a set number of header lines, but know the content of the last header line, you can read a portion of the fil...

3 months ago | 0

Answered

Why is this giving me an error message when trying to use trapz.

A more concise aproach. B = 18.6; step = 0.5; tmax = 90; npas = tmax/step+1; U = 60; fun3 = @(s) (0.0081*(exp(-0.0058.*s))...

Why is this giving me an error message when trying to use trapz.

A more concise aproach. B = 18.6; step = 0.5; tmax = 90; npas = tmax/step+1; U = 60; fun3 = @(s) (0.0081*(exp(-0.0058.*s))...

3 months ago | 0

Answered

Efficiently add cell value from a matrix row based on corresponding index to another matrix row

It looks as if every other column of B is a row index corresponding the the rows of A. It also appears that C consists of pairs ...

Efficiently add cell value from a matrix row based on corresponding index to another matrix row

It looks as if every other column of B is a row index corresponding the the rows of A. It also appears that C consists of pairs ...

3 months ago | 1

Submitted

DragDataTip

Creates draggable data tips with custom labeling options on most 2-D plots. Custom labels options can also be applied to standar...

3 months ago | 8 downloads |

Solved

Reverse Calculator

Use this reverse calculator and give correct output Its simple, In my Reverse calculator if you press 0 it will be considered...

4 months ago

Solved

Number of 1s in the Binary Representation of a Number

*Description* Return the number of 1s in the (unsigned integer) binary representation of a number. This function should be ab...

4 months ago

Solved

letter yes yes & letter no no

Split a string into two strings, wherein the first string has all alphabetic letters and the second string has all the remaining...

4 months ago

Solved

Bang Bang in Bangalore

Imagine a strange language disorder, Bangolangosis, has developed among trigonometricians of <http://en.wikipedia.org/wiki/Banga...

4 months ago

Solved

Concatenate strings

concatenate a variable number of input strings to produce one outputstring

4 months ago

Solved

Perimeter

Given a sequence of points forming a closed path (first and last points are coincident) return the perimeter value. For example...

4 months ago

Solved

Matlab Basics - Rounding I

Write a script to round x DOWN to the next lowest integer: e.g. x = 2.3 --> x = 2 also: x = 2.7 --> x = 2

4 months ago

Solved

2倍してみよう - ここからスタート！

初めにこの問題を試してみよう。 入力としてxを与え、それを2倍して結果をyに代入せよ。 Examples: Input x = 2 Output y is 4 Input x = 17 Output y is 34 ...

4 months ago

Solved

Poker Series 01: isStraightFlush

The Poker Series consists of many short, well defined functions that when combined will lead to complex behavior. Our goal is t...

4 months ago

Solved

Use of regexp

Given a string, containing several sentences, such as: 'I played piano. John played football. Anita went home. Are you safe?...

4 months ago

Solved

Find the maximum number of decimal places in a set of numbers

Given a vector or matrix of values, calculate the maximum number of decimal places within the input. Trailing zeros do not coun...

4 months ago

Solved

Make roundn function

Make roundn function using round. x=0.55555 y=function(x,1) y=1 y=function(x,2) y=0.6 y=function(x,3) ...

4 months ago

Solved

Rounding off numbers to n decimals

Inspired by a mistake in one of the problems I created, I created this problem where you have to round off a floating point numb...

4 months ago

Solved

Check that number is whole number

Check that number is whole number Say x=15, then answer is 1. x=15.2 , then answer is 0. <http://en.wikipedia.org/wiki/Whole...

4 months ago

Solved

Matlab Basics - Rounding III

Write a script to round a large number to the nearest 10,000 e.g. x = 12,358,466,243 --> y = 12,358,470,000

4 months ago

Solved

MATLAB Basic: rounding III

Do rounding towards minus infinity. Example: -8.8, answer -9 +8.1 answer 8 +8.50 answer 8

4 months ago

Solved

MATLAB Basic: rounding IV

Do rounding towards plus infinity. Example: -8.8, answer -8 +8.1 answer 9 +8.50 answer 9

4 months ago

Solved

MATLAB Basic: rounding II

Do rounding nearest integer. Example: -8.8, answer -9 +8.1 answer 8 +8.50 answer 9

4 months ago

Solved

MATLAB Basic: rounding

Do rounding near to zero Example: -8.8, answer -8 +8.1 answer 8

4 months ago

Solved

Matlab Basics - Rounding II

Write a script to round a variable x to 3 decimal places: e.g. x = 2.3456 --> y = 2.346

4 months ago