Solved

Math with Roman Numerals

Given a function R within (+,-,*,/) and two Roman numerals a & b, compute aRb in Roman numerals.

11 mesi ago

Solved

Checkmate-02

This is an extension of the problem <https://www.mathworks.com/matlabcentral/cody/problems/45238-checkmate> If the king is in...

11 mesi ago

Solved

7 segment LED display

Given a whole number, output how many segments would be lit up to display it on a 7 segment LED display (see Wikipedia: <http://...

11 mesi ago

Solved

Converting numbers back from extended form

Thanks for all the help you guys gave me on writing out the numbers in extended form in <http://www.mathworks.com/matlabcentral/...

11 mesi ago

Solved

Numbers in extended form

Shhhhhhh. Don't tell my daddy, but I'm borrowing his Cody account so all of you very smart people can help me out. I just star...

11 mesi ago

Solved

Decode a simplified barcode

Given a bar code from this <http://www.mathworks.com/matlabcentral/cody/problems/602-make-a-simplified-bar-code exercise>: Re...

11 mesi ago

Solved

Make a simplified barcode

Given an integer to encode, make a barcode using the following encoding scheme: * The bar code is made from the binary versio...

11 mesi ago

Solved

Ripping numbers apart!

So you have to "rip" a number apart into individual digits... The end output is a cell. That is if: x = 12345678 o...

11 mesi ago

Answered

Efficient matrix operation: how to avoid for loop

Roberto, this should help with consolidating your code as well as improving the overall performance. Benchtests that I ran were ...

Efficient matrix operation: how to avoid for loop

Roberto, this should help with consolidating your code as well as improving the overall performance. Benchtests that I ran were ...

11 mesi ago | 2

| accepted

Answered

Matlab App Designer: Update plot during loop in a function

Assuming that your plot function is part of the while loop and you have the hold off, then you might try using pause and/or draw...

Matlab App Designer: Update plot during loop in a function

Assuming that your plot function is part of the while loop and you have the hold off, then you might try using pause and/or draw...

12 mesi ago | 1

| accepted

Answered

Adding values of Columns in a matrix to create another matrix (for loop)

Anna, if you are trying to multiple two 1x25 vectors element-wise then try using a period in front of the multiplication operato...

Adding values of Columns in a matrix to create another matrix (for loop)

Anna, if you are trying to multiple two 1x25 vectors element-wise then try using a period in front of the multiplication operato...

12 mesi ago | 0

Answered

How can I find the average of certain rows in a column depending on the value of another column?

I may not completely understand the problem statement or the splitapply function, but it does not appear that the solution provi...

How can I find the average of certain rows in a column depending on the value of another column?

I may not completely understand the problem statement or the splitapply function, but it does not appear that the solution provi...

12 mesi ago | 0

Answered

Conditional mean for a matrix (calculate the mean ignoring the negative numbers)

Use something similar to the below example A = [-1, 2, 4 3,-1, 5 -1, 3, 4]; mean(A(A>=0))

Conditional mean for a matrix (calculate the mean ignoring the negative numbers)

Use something similar to the below example A = [-1, 2, 4 3,-1, 5 -1, 3, 4]; mean(A(A>=0))

12 mesi ago | 0

| accepted

Answered

Histogram xlabel, ylabel, and title.

Paul, the order that you are calling the functions is incorrect. You need to create the histogram plot prior to assigning labels...

Histogram xlabel, ylabel, and title.

Paul, the order that you are calling the functions is incorrect. You need to create the histogram plot prior to assigning labels...

12 mesi ago | 3

| accepted

Answered

Saving output values from a function into an array (to plot later)

If your function is returning scalar values that are being overwritten during each iteration of your for-loop, try the following...

Saving output values from a function into an array (to plot later)

If your function is returning scalar values that are being overwritten during each iteration of your for-loop, try the following...

12 mesi ago | 1

| accepted

Answered

Area Under Curve and above X axis only, and between x axis limits.

If you are trying to determine the area under the curve between the frequencies of 1 Hz to 6 Hz for all y-values greater than 0,...

Area Under Curve and above X axis only, and between x axis limits.

If you are trying to determine the area under the curve between the frequencies of 1 Hz to 6 Hz for all y-values greater than 0,...

12 mesi ago | 1

| accepted

Answered

I don't know why hold on wont work- it only produces one graph with one model and not both on one graph

Amber, it looks like you are creating a figure twice and only applying hold on to the first, while plotting to the second. Try p...

I don't know why hold on wont work- it only produces one graph with one model and not both on one graph

Amber, it looks like you are creating a figure twice and only applying hold on to the first, while plotting to the second. Try p...

12 mesi ago | 0

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

circa un anno ago

Solved

Decimal Comparison

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

circa un anno 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 ...

circa un anno 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...

circa un anno 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...

circa un anno ago

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

oltre un anno 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))...

oltre un anno 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 ...

oltre un anno ago | 1

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

oltre un anno ago | 1 answer | 0

Submitted

DragDataTip

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

oltre un anno ago | 9 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...

oltre un anno 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...

oltre un anno 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...

oltre un anno ago