Community Profile

photo

Cris LaPierre


Last seen: Today

MathWorks

2,225 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
Error using datetime - Input data must be one numeric matrix when converting from a different date/time representation.
Typically you would use the 'ConvertFrom' name-value pair. t = datetime(X,'ConvertFrom',dateType) Select the appropriate datat...

11 hours ago | 0

Answered
How can I extract unique pairs of matrix in reverse order?
If you use a table, you can use join. A = [ 1 1 2 2 1 4 3 2 1 4 2 3 5 ...

20 hours ago | 0

Answered
Connecting Simscape Electrical Blocks to Simulink
You likely need to use either a PS-Simulink block or a Simulink-PS block. If you haven't done so yet, consider going through Si...

20 hours ago | 0

Answered
If Else simple calculation not working
Your code works for me, with one modification - using Vals.Value instead of Vals.Values. One thing to be aware of, Your code wo...

1 day ago | 0

Answered
Table display issue in live scripts ( R2021a version )
See this answer

1 day ago | 0

Answered
how to run 2 while loops in one script
It seems like this could be written in a single while loop with an if statement that only executes the code corresponding to the...

1 day ago | 0

| accepted

Answered
why my constant scope value is circle?
Look at your sampling time of your constant. By default, it is inf. This means it is sampled once at 0, and never again. Chan...

1 day ago | 0

Answered
How to solve equivalent impedance
MATLAB Onramp, in particular Chs 1-6 and Ch 9.

1 day ago | 0

Answered
Date & Time import
data = readtable('vivekData.txt') data.Var1.Format = 'yyyy-MM-dd HH:mm:ss'

1 day ago | 0

| accepted

Answered
Value for a certain array is not computed correctly
Either your code is wrong, or you have incorrectly interpreted your algorithm. From lines 7-8, 1st Depth is column B, 2nd Depth...

2 days ago | 0

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

2 days ago | 1

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

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

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

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

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

4 days ago | 0

| accepted

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

5 days ago | 1

| accepted

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

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

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

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

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

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

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

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

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

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

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

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

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

16 days ago | 1

| accepted

Load more