Community Profile

photo

Cris LaPierre


Last seen: Today

MathWorks

1,619 total contributions since 2018

Cris LaPierre's Badges

  • 12 Month Streak
  • Guiding Light
  • Thankful Level 2
  • Revival Level 4
  • Solver
  • Knowledgeable Level 4
  • First Answer

View details...

Contributions in
View by

Answered
Error using findpeaks Expected Y to be one of these types: double, single Instead its type was table.
Best to use variable you define rather than ans. The function readtable returns a table. Each column of a table is, in turn, a...

2 hours ago | 0

Answered
Plot a 3d domain with colors determined by 3d array
I would use the following syntax for scatter3 scatter3(X,Y,Z,S,C) Note that if C is a vector with length equal to the length o...

4 hours ago | 1

Answered
How to: sum up elements of a row vector into bins of a matrix
With a little creativity, you can use groupsummary. Since you haven't shared enough of your code to use that for an example, her...

6 hours ago | 0

Answered
Change/Add License Administrator
https://www.mathworks.com/matlabcentral/answers/101101-how-do-i-change-the-administrators-on-my-license

7 hours ago | 0

Answered
Index exceeds number of array elements (1)
You might find the explanation I gave in this post helpful.

8 hours ago | 0

Answered
How do I convert a double into a cell array?
You can use num2cell. Use the transpose operator to convert a 30x1 to a 1x30. a=(1:5)' b=num2cell(a')

8 hours ago | 0

| accepted

Answered
create a plot with two y - axis where the second one is just a reference scale.
I provided this solution for a similar request in add designer. Remove any "app." and "app.UIAxes," and it should work.

8 hours ago | 0

Answered
How to save a specific workspace variable instead of the entire workspace
save(filename,variables)

9 hours ago | 1

Answered
Using drop-down list selection to plot
There is no DropDown.Item.Value property. See this page for more. There is a DropDown.Items property. This is everything the d...

13 hours ago | 0

| accepted

Answered
Highlight a data point on graph using slider
My recommendation would be to create you highlight at the intial value of the slider at the same time you plot. Be sure to captu...

14 hours ago | 0

Answered
How to change font in legend while using latex interpreter
It does not appear to be possible to change the font. You can get roman or italic using \mathrm{} or \mathit{} respectively. I ...

23 hours ago | 0

Answered
How do I debug this code?
Preallocation messages are code analyzer warnings, not errors. They are tips to improve your code, but will not prevent it from ...

23 hours ago | 0

Answered
How Matlab to support of controlling Parrot-ANAFI drone?
See this post: https://www.mathworks.com/matlabcentral/answers/495235-will-matlab-support-the-parrot-anafi-in-r2020a

23 hours ago | 0

Answered
Limits must be a 2-element vector of increasing durations.
You are plotting a variable of data type duration as x. Therefore, your axis is made up of durtions. The xlim valuse you use mus...

1 day ago | 0

Answered
Using diff() to identify the two values with the highest difference.
You could write your own function to do this. However, I'm not aware of anything that does this already. Especially since you ar...

1 day ago | 1

Answered
App Designer: Error using readtable "filename" must be a string scalar or character vector.
I suspect the error is with how you are indexing you file names. First, what is fileList? Shouldn't you be using the files that...

1 day ago | 0

| accepted

Answered
How to use the function triplot to plot an stl file in a specific axis inside App Designer?
When plotting in app designer, you need to tell the plotting function what axes to plot into. Although the documentation for tri...

1 day ago | 0

Answered
From .m file to app designer
The best place to get started is the Getting Started with App Designer page. Once you have watched that, go to the doc page on d...

1 day ago | 0

Answered
I cannot share my MATLAB online files to others.
You can only share folders in MATLAB Drive, not individual files. The sharing can be done in MATLAB Online or MATLAB Drive onlin...

1 day ago | 0

Answered
bug in the function
What is ETA? You cannot use a variable you have not defined. Perhaps you think this variable is loaded by data.mat, but appare...

1 day ago | 0

Answered
How to do curve fitting on data with inflection point?
Why do you think there is no equation that can fit this data? This looks like a sigmoid E max model to me. A similar shape is ob...

1 day ago | 0

| accepted

Answered
Nested For Loops and Plotting
I highly recommend you use Stephen Cobeldick's solution for creating a tridiagonal matrix (see here). It's much cleaner. Avoid ...

1 day ago | 0

Answered
How to call a script when clicking on a button in matlab app.designer?
You run a script by calling it by name. However, is there a reason you don't just include the code and parameters inside your a...

1 day ago | 0

| accepted

Answered
How delete property of a GUI?
Try cla. You need to include your gui axes object. cla(app.UIAxes)

1 day ago | 0

| accepted

Answered
Can someone help me to see where the error is please?
Your conditional statemens are using an incorrect syntax. Notice the characters that are underlined in red. It looks like you fo...

1 day ago | 0

Answered
How to change the colour of the given code's plot?
This is a question easily solved with the documentation. plot3 > linespec patch > Polygon color

1 day ago | 0

| accepted

Answered
Error using datetime/datenum
First problem is you are trying to convert your datetime to a datenum. I hightly recommend keeping it a datetime. What are you t...

2 days ago | 0

Answered
Creating Polar mesh in matlab
See this answer on how to do this using a rectangular matrix https://www.mathworks.com/matlabcentral/answers/438319-use-surf-to...

2 days ago | 0

Answered
export 3 D data
https://www.mathworks.com/matlabcentral/fileexchange/27982-wavefront-obj-toolbox https://www.mathworks.com/matlabcentral/answer...

2 days ago | 0

Answered
Color in Scatter function
There are two ways to specify the color - as the 4th input or with Name-Value pairs. To use the 4th input, follow this example ...

2 days ago | 0

| accepted

Load more