Community Profile

photo

Cris LaPierre

MathWorks

Last seen: Today Active since 2018

Statistics

All
  • Community Group Solver
  • Thankful Level 4
  • Most Accepted 2021
  • 24 Month Streak
  • Ace
  • Revival Level 4
  • Solver
  • Knowledgeable Level 5
  • First Answer

View badges

Content Feed

View by

Answered
How can I plot lat lon and z-data with changing colors?
A couple of the mapping plotting functions come to mind. Your Z value is used to determine the color. plot3m scatterm geoplot...

13 hours ago | 0

Answered
How can I assess Symbolic Units and use assessVariableEqual to admit tolerances in MATLAB Grader simultaneously ?
I believe this answer is related: https://www.mathworks.com/matlabcentral/answers/512436-grader-says-answer-verified-in-referen...

16 hours ago | 0

Answered
How to delete content of table data from gui ?
All the data returns because you likely have not cleared your variable p.MyData. You code for collecting values appends the new ...

3 days ago | 0

| accepted

Answered
Index exceeds the number of array elements. Index must not exceed 1.
See the full error message: Index exceeds the number of array elements. Index must not exceed 1. Error in LE_RF_p1 (line 4) X...

3 days ago | 0

Answered
How to plot 3D vectors on a 2D plot?
The solution likely varies depending on your data, but I would probably first look into using imagesc: imagesc(x,y,C) This way...

4 days ago | 1

| accepted

Answered
Appdesigner 'Value' must be double scalar
The Value property can only be a single numeric value (that's what is meant by 'double scalar'). It is likely the result of csvr...

4 days ago | 0

| accepted

Answered
Edit field numeric appdesigner
I would use the Label component to add the '*X' to the right of the edit field.

5 days ago | 0

| accepted

Answered
What's the difference?
In b), you rerun the code you developed for a) for each student in your list. Typically this would be done by placing the code f...

5 days ago | 0

Answered
How to fix unallignment of box plot in subplot when using sgtitle?
Interestingly, if I run your code in a live script, it initially renders incorrectly, but then corrects itself. If I run your co...

8 days ago | 1

| accepted

Answered
How to recover .m file lost due to the abnormal termination
See this page: https://www.mathworks.com/help/matlab/matlab_env/recovering-data-after-an-abnormal-termination.html

8 days ago | 0

Answered
Can "datetime" be responsible for the misalignment of data in a plot ?
I think the allignment difference is due to what MATLAB is setting your axis limits to when the x values are datetimes (Jun 17 -...

10 days ago | 1

Answered
Live script, convert to local function
It is bad practice - and completely unnecessary - to create a function where the first command is clear. Remove this line of cod...

11 days ago | 0

| accepted

Answered
Chirp plot is not drawing
You need to place hold on before you add a second plot to your axes. Your code currently replaces the plot with the stem plot. ...

11 days ago | 0

Answered
How do I get MATLAB to read a long number as a date and time?
Convert your numbers to strings, and then use datetime to convert it to a time. % original data t = [11142021092415; 724202009...

11 days ago | 0

Answered
Combine two matrices according to datetime in first column
You are going to have a challenge here because the tolerance indicated in your example (~1 minute) is much larger than the small...

11 days ago | 0

| accepted

Answered
Get datenum to return missing instead of throwing an error
I would start by looking into the standardizemissing function.

17 days ago | 0

| accepted

Answered
Input mesh does not form a closed volume error; checked that mesh is watertight
I wouldn't say I can suggest a more elegant workflow, but here is one that I have found to work in the past. It involves using s...

18 days ago | 0

Answered
MATLAB Online does not run script properly
Code runs without error for me. I can also run it here without error. Perhaps try again? If it happens again, perhaps there are ...

19 days ago | 0

Answered
How do i delete a repeating row
Modified from this example [C,ia] = unique(grades{:, 1}); B = grades(ia,:) See this page for alternate ways to access data in...

21 days ago | 0

| accepted

Answered
Plotting data from text file , subplot
See the examples in the following documentation pages readmatrix subplot plot

23 days ago | 0

| accepted

Answered
Help with code, writematrix not working. Please help fix
Your first input to writematrix needs to be a variable name, not a char. Change this: writematrix('Departure City:','table1.xl...

23 days ago | 0

Answered
Operands to the || and && operators must be convertible to logical scalar values.
Use || and && when you are comparing a single (scalar) value. Use | and & when you are comparing arrays (when there is more than...

23 days ago | 0

Answered
Passing Data between two Apps
See this support page https://www.mathworks.com/help/matlab/creating_guis/creating-multiwindow-apps-in-app-designer.html and t...

23 days ago | 0

Answered
how can I open a matlab app that I designed in AppDesigner inside another app that I'm creating (always in AppDesigner)?
See the Create Multiwindow Apps in App Designer page

24 days ago | 1

| accepted

Answered
How to conditionally and by groups subtract one row from another in table?
I think I would calculate the results to a new table using groupsummary, then concatenate the tables. This is a little longer th...

24 days ago | 1

Answered
Extract data from sequentially named tables
Converting your tables to stuct or cells to me seems like taking a step backward. Why not just concatenate all the tables togeth...

25 days ago | 1

Answered
How to automatically get the axis of a figure in Live Editor?
You can get the axes object in a figure the same way you would outside of a live script. Option 1: capture the axes object by c...

26 days ago | 0

| accepted

Answered
I keep receiving an error when I try to run this code for a 3DOF mass-spring system "Index in position 1 exceeds array bounds. Index must not exceed 1".I am confused as to why
The problem is that zeta is a scalar, not a vector. The fix is to not index this variable. n=3; %degree of freedom m1= 45400; ...

27 days ago | 0

| accepted

Answered
Can matlab grader questions be vulnerable by hackers through pretest?
If the pretest assessment is a MATLAB Code test type, then learners can expand the test to see the underlying assessment test co...

28 days ago | 0

| accepted

Answered
Create a GUI interface in MATLAB for simple image functions like reading and displaying??
Take a look at this example app.

29 days ago | 1

| accepted

Load more