Community Profile

# Allen

##### Last seen: 2日 前
356 2017 年以降の合計貢献数

#### Allen's バッジ

すべて表示

Problems with min and max functions
Since you are defining your function as having a input x, you do not need to redfine it within your function. You can also achie...

3日 前 | 1

| 採用済み

Modify Strings in cell array according to pattern
I am sure that there is a much more elegant method using just regular expressions, but the following should give you what you ar...

3日 前 | 0

How do I construct this function?
The following should accomplish what you are asking. function TF = issquare(A) % Verifies that A is a numerical matrix with ...

3日 前 | 0

Output argument ‹variable› (and maybe others) not assigned during call to ‹function›
Currently, you have only decleared pdf as an output argument at the start of your function, but have neglected to assign a value...

11日 前 | 0

matlab legend dotted lines
Without knowing whether your x and y inputs used in the plot function are vectors or arrrays it is hard to derive a working solu...

11日 前 | 0

How can I subplot 3 graphs with errors barr and different characteristics?
Replace the lines containing the subplot functions with the following: ... subplot(3,1,1) ... subplot(3,1,2) ... subplot(3...

11日 前 | 0

| 採用済み

"surf" overwrites axis properties
Try reordering your properties so that they are assigned after you use the surf function. fig = figure; ax = axes('Parent',fig...

12日 前 | 0

App Designer KeyPress callback for a Tree
Chris, As you mentioned, App Designer Trees do not yet have a KeyPress callback. While the UIFigure does have this callback, th...

13日 前 | 0

| 採用済み

Inspired by Problem 2008 created by Ziko. In mathematics, the persistence of a number is the *number of times* one must apply...

26日 前

Convert Roman to Arabic Numerals
Based upon what I see on tv and at the movies, the use of Roman numerals indicates something is important or sophisticated (e.g....

26日 前

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

26日 前

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

26日 前

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

26日 前

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

26日 前

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

26日 前

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

26日 前

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

26日 前

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

26日 前

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

26日 前 | 2

| 採用済み

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

| 採用済み

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

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

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

| 採用済み

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

| 採用済み

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

| 採用済み

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

| 採用済み

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

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

4ヶ月 前

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

4ヶ月 前

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

4ヶ月 前