Community Profile

# Duncan Lilley

### MathWorks

Last seen: 17 giorni ago Active since 2017

All

#### Content Feed

View by

Change to code formatting behaviour in editor in R2021b?
Hi Adam, I can see two possible options here: 1. Enable automatic completions for block statements in the preferences. This ca...

circa 2 mesi ago | 1

| accepted

How can I calculate the difference between two lines that may consist of NaNs/reoccuring values?
Hello John, There are several things to address here. First, there are a few ways to handle the NaN values. They can eith...

oltre 3 anni ago | 0

Solved

Is my wife right?
Regardless of input, output the string 'yes'.

circa 4 anni ago

How do I plot convergence in Newton's method to find square root?
If you are trying to plot each stage of Newton's method, here are some suggestions: # In order for multiple plots to display ...

circa 4 anni ago | 0

How to access normalized data values from a normalized heatmap
There is not a direct way to access this normalized data. However, it is relatively straightforward to calculate. Consider the f...

circa 4 anni ago | 0

| accepted

Link .CSV file to image file names
Hello, First you will want to import the data from your CSV file. In MATLAB, you can right-click on the file in the Current F...

circa 4 anni ago | 0

Solved

Tick. Tock. Tick. Tock. Tick. Tock. Tick. Tock. Tick. Tock.
Submit your answer to this problem a multiple of 5 seconds after the hour. Your answer is irrelevant; the only thing that matte...

circa 4 anni ago

How can i make a decicion in order to make my program run after it
It sounds like you want to place your code within an if...end expression. Refer to the documentation page, <https://www.mathwork...

circa 4 anni ago | 0

Solved

Pernicious Anniversary Problem
Since Cody is 5 years old, it's pernicious. A <http://rosettacode.org/wiki/Pernicious_numbers Pernicious number> is an integer w...

circa 4 anni ago

Solved

How to subtract?
*&plusmn &plusmn &plusmn &plusmn &plusmn &plusmn &plusmn &plusmn &plusmn &plusmn &plusmn* * Imagine you need to subtract one...

circa 4 anni ago

How to move pixels to a new coordinate by a function?
Hello, After an image is read into MATLAB, it is stored as a matrix of numbers. These numbers determine the color of the pixe...

circa 4 anni ago | 1

| accepted

MATLAB XIRR gives -37.1% while excel gives 4.2%
Hello, It appears that the algorithm is converging to a different solution. Here are some workarounds which achieve the same ...

oltre 4 anni ago | 0

When using the regression learner app is there a way to save a regression learner session when many regressions have been run?
Hello, There is currently no direct way to save an existing session within the Regression Learner App. However, to prevent th...

oltre 4 anni ago | 0

| accepted

Can MATLAB solve 3 order equation including square root of the variable?
Hello, If a symbolic equation has no solution, then "solve" would return empty. The return value you have received indicates ...

oltre 4 anni ago | 0

Imshow in App Designer (Image size doesn't fit)
Hello, From my understanding of your question, you wish to display an image which will take up the entire space within the fi...

oltre 4 anni ago | 8

| accepted

Why Validation set is not used in MATLAB example of Deep learning
As of the R2017b Prerelease, there is now a "ValidationData" parameter to the "trainingOptions" function. This allows the user t...

oltre 4 anni ago | 0

Patch FaceVertexCData being overwritten by FaceColor
In order for the patch to use the color data you have specified, you must set the "FaceColor" property to be either "flat" or "i...

oltre 4 anni ago | 0

| accepted

Publishing a plot with a caption
The functionality you have described can be achieved with the "snapnow" function, which forces a snapshot of an image for inclus...

oltre 4 anni ago | 0

Modify line style with insertShape
One potential workaround to this is to create a new figure, display the image over the axes, and use the grid lines of the axes ...

oltre 4 anni ago | 0

| accepted