Community Profile

photo

Cris LaPierre


Last seen: Today

MathWorks

1,009 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
Matlabonramp 13.2.
"Toggle" means to switch between to states (on/off, yes/no, in/out, show/hide, etc). A Further Practice section is an area to p...

2 days ago | 0

| accepted

Answered
plot 4 plots on 3 axes
Start by looking into yyaxis. As for adding a 3rd y-axis, see if this post helps.

3 days ago | 0

Answered
Datevector conversion from Excel to Matlab
I would read them in this way: data = readtable('datevec_raw.xlsx','ReadVariableNames',false);

4 days ago | 0

| accepted

Answered
How can I to convert a cell to a double without losing the leading zeros?
I believe you would have to keep it a string in order to pad with zeros up front. See this post.

5 days ago | 0

Answered
Adding latex text to a curve in a matlab plot
Try using the text function and set the 'Interpreter' name-vale pair to 'latex'.

5 days ago | 0

Answered
App Designer - Button group
See this post.

7 days ago | 0

Answered
Loading a VERY inconsistent data
When I look at your file, it looks to be fixed-width, but you seem to have two different data sets combined here. The indicator ...

8 days ago | 2

Answered
How to open csv file?
There are many ways to import a csv file, including readtable textscan readmatrix csvread (not recommended) dlmread (not re...

8 days ago | 1

Answered
comparing table values using isequal
This can be done much simpler. Try something like this. A = M(M{:,2}=="f",:);

9 days ago | 1

| accepted

Answered
How to solve "Unable to perform assignment because the indices on the left side are not compatible with the size of the right side" error?
x(j) is a single array element. You are trying to assign it 3 values, [dis0; phi0; theta0]. I'm unsure what the intent is, but o...

9 days ago | 0

| accepted

Answered
How can I count all occurances of each date in a DateTime Array?
I would look into groupsummary. Like Adam suggests, you'll need to remove the time portion for it to work as you intend. % Simp...

10 days ago | 1

| accepted

Answered
Is there a way to make the grid of latitude/longitude bolder when I use worldmap('World')
You could try something like this: % Code example with slight change (w=) w=worldmap('World'); load coastlines plotm(coastla...

11 days ago | 0

| accepted

Answered
About Matlab r2020a online
Not sure we can answer your question without knowing what is in the course and whether or not you have access to MATLAB Online. ...

13 days ago | 0

Answered
Error: File: Lab1.m Line: 81 Column: 1 Function definitions in a script must appear at the end of the file. Move all statements after the "f" function definition to before the first local function definition.
What you have shared looks good, but you have not shared your full file (we do not see 81 lines, nor do we see a function f). As...

13 days ago | 0

Answered
How to convert 64 bit integer timestamp to yyyymmddHHMMSSffffff format?
My best guess would be to use datetime and set the 'Epoch' and 'TicksPerSecond' name-value pairs. Perhaps something like this? ...

13 days ago | 1

| accepted

Answered
How to Use imported Workspace Data in MATLAB script
You need to refer to them using their variable name. This is the name used in the Workspace. It was set (intentionally or not) w...

13 days ago | 0

| accepted

Answered
How to create a correct barplot from table?
You probably need to impose an order on your categorical data. Otherwise, it is automatically arranged in alpha-numeric order. U...

14 days ago | 0

| accepted

Answered
Matlab Grader: Feedback for common errors
The current (R2020a) way to achieve this in MATLAB Grader is to use a MATLAB Code assessment type and logical statements to perf...

16 days ago | 0

| accepted

Answered
problem will installation of software
See this post on performing a clean install.

18 days ago | 0

Answered
3D Graphic from 40 files
Here's one way. Since we didn't have your data, I made my own. You will have to do some adapting to get it to work with your var...

20 days ago | 0

| accepted

Answered
Missing functions in live editor
What version of MATLAB are you using? These were introduced starting in R2018a.

20 days ago | 0

| accepted

Answered
Bar3 plot increase bar thickness
If you read Mike's blog post (where your desired image comes from), you'll notice he wrote his own function for creating a 3D st...

21 days ago | 0

Answered
assignment problem caused by size misfit between two sides
Which line is causing the error? There must be some code missing from what you've shared here. You get this error when your as...

21 days ago | 1

| accepted

Answered
Drawing polygon on axes GUI, Finding the area of a polygon
It's not clear if you are using app designer or guide. It should be simple enough to try. If you have trouble, share your code s...

21 days ago | 1

| accepted

Answered
Boxplot with logarithmic y-axis
The tick values must correspond to the plotted data. The tick labels can be whatever you want. You can change the scale of your...

21 days ago | 0

| accepted

Answered
Import range of files based on file name
Acknowledging there are a lot of ways to do this, here's how I thought to do it. It borrows from the code you've shared. % Sele...

21 days ago | 0

| accepted

Answered
Creating 3D Scenario from Aerial Image (Mathworks Road Runner)
Have you seen the documentation on the Aerial Imagery Tool?

21 days ago | 0

Answered
Apply formula to a set array of each group
It looks like you are using a table. If so, every variable in the table has the same number of rows. It looks like your table ha...

21 days ago | 0

Load more