Community Profile

photo

Cris LaPierre


Last seen: Today

MathWorks

2,215 total contributions since 2018

Cris LaPierre's Badges

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

View details...

Contributions in
View by

Answered
Replace numbers in a matrix
Create your vector of numbers using square brackets, and assign it to column 4 the same way you did for the 3rd column. Hint: 1...

12 hours ago | 0

Answered
How to Colour regions in a gscatter?
This is actually from the Machine Learning Onramp, not MATLAB Onramp. See Chapter 2.5. The one you show is specifically in the b...

12 hours ago | 0

Answered
Legend does not match with the bar chart in MATLAB
I think the issue is that you are plotting your bars twice. Your legend applies to the data in the order it was plotted, so the ...

13 hours ago | 0

| accepted

Answered
Timetables inside table are not updating correctly
I think the issue is that you are treating tables like cells. In a cell, each can be a variable. However, in a table, an entire ...

1 day ago | 0

| accepted

Answered
MATLAB app designer version error 2019b vs 2017.
Grid Layout was not available in 2017. You could try using the 'Save Copy As' option. Select 'Save as type' and choose the vers...

3 days ago | 0

| accepted

Answered
Trapz not referred to x-axis
If you want to use trapz, use it to calculate the area below both lines, and then subtract them to find the area between the lin...

3 days ago | 0

Answered
I have a time series which my sensors recorded them in this format: 10.02.42.415 instead of this: 10:02:42.415 ! How can I fix my entire array (which is 465637 samples!)??
The simplest way I can think of is to use datetime. Since you have no date associated with the time, sutract off today's date to...

3 days ago | 1

| accepted

Answered
plot y limit troubles
plot(w, min(50,t))

4 days ago | 0

Answered
Unauthorized Linked problems in MATLAB Grader activity on LMS Moodle
Your LMS knows what problem to load based on the LTI key and the resource_link_id the platform assigns to the LTI problem. When ...

5 days ago | 1

| accepted

Answered
How can I divide the colorbar into just two ranges?
The number of colors is controled by your colormap. However, MATLAB spreads the colormap evenly over the range of data plotted. ...

6 days ago | 0

Answered
Migration from GUDE to App Designer
@G A provided this answer in a comment above: https://uk.mathworks.com/matlabcentral/answers/479426-migrated-guide-to-app-desig...

6 days ago | 0

Answered
Accessing a full PDF of tasks and answers of ONRAMP
While MATLAB Onramp does have course files you can download, it does not contain exactly what you are asking for. It consists of...

6 days ago | 1

| accepted

Answered
How to fix the waterfall plot curtain along the y-axis bug?
There appears to be an issue when plotting using very small step sizes in X. If you create the waterfall plot without specifying...

6 days ago | 0

Answered
Could someone please explain what is wrong in my function?
You have not defined r and c. You have three options that I see. Pass in the single value to your function: Sign = signum (B...

7 days ago | 1

| accepted

Answered
Check if string contains a set of numbers
It would be helpful to have more data to test with, but my approach would probably be to convert the cell of names to a string a...

7 days ago | 1

| accepted

Answered
exit from a nested while loop after having set its index to a given value
We don't have enough data to run your example. However, the error message has to do with how you are indexing height. It would a...

8 days ago | 1

| accepted

Answered
Error when combine tables vertically under some circumstances
I've edited your post to run your data and display the underlying issue. You use char arrays to create posture. To combine char...

8 days ago | 1

| accepted

Answered
How to plot coupling functions?
If I don't use fplot, I do get a more descriptive error message. Based on the code you have shared, you are using your function ...

9 days ago | 0

Answered
How do I change my code to stop a for loop simply replacing rows of outputs in a uitable?
Uitables do not have an append mode. When you specify data, you either need to specify the specific row, or reload all the data....

12 days ago | 0

| accepted

Answered
dynamic title in app.UIAxes won't work
Your function is working, but it is returning a 1x3 cell array. Title does not accept a cell array of cells. When building your...

14 days ago | 1

| accepted

Answered
Import .csv with missing delimiters and values
Perhaps you have not shared enough data for us to understand the problem. When asking a question about MATLAB, it's usually help...

14 days ago | 1

Answered
Is there a way to control the length of t in the output of ode45?
Yes. Instead of using a time span, use a time vector. The equation will still be solved the same way (variable time step), but t...

15 days ago | 1

| accepted

Answered
how do i use contour command for rectangular plate ?
Include your x and y vectors when plotting. You'll have to do some manipulation of y since you create it starting at 2 and decre...

15 days ago | 0

| accepted

Answered
Combine date and time
The best way to combine data types (datetime and numeric) is to use a table. There are several possible approaches. Here is one....

16 days ago | 0

| accepted

Answered
How to install toolboxes in cloud mobile MATLAB?
You will have access to whatever toolboxes are on your license. If you do not have a license, you will only be able to use base ...

16 days ago | 0

Answered
discontinuous stairs graph plot
I think the trick here is to realize that MATLAB will treat each column as a separate data series, so orgainze each step (start ...

16 days ago | 0

| accepted

Answered
Error in Principal Component Analysis (PCA) matlab
You are getting this error because you have overwritten MATLAB's pca function with your pca.m file. Rename your file, and your c...

17 days ago | 0

| accepted

Answered
vertical lines of 'mean' and 'std' in a 'ksdensity' plot?
Use xline. % create a distribution with known mean, std pd = makedist('Normal','mu',2.5,'sigma',3.1); x = random(pd,100,1); ...

17 days ago | 0

| accepted

Answered
Custom Add-on setup
If you create a toolbox (*.mltbx), it will appear in the Add-Ons Explorer once installed. If you want users to be able to down...

17 days ago | 0

Answered
Matlab online session not starting .
When you have issues with your session, try deleting it and then sign in again. You can find the instructions here.

17 days ago | 0

| accepted

Load more