Community Profile

photo

Cris LaPierre


Last seen: Today

MathWorks

1.846 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
How to force a matlab script to rerun the script from the beginning using list items and if statement?
Scripts edit from top to bottom. MATLAB does not have a GOTO command. However, you can accomplish this by reorganzing your code....

32 minutos ago | 0

Answered
How to show the bin' percentage values' in a histogram?
The issue is with how you defined your binranges. When you don't specify a step size, the colon operator uses 1. binranges = -0...

alrededor de 1 hora ago | 0

Answered
Why wont the lines on my plot show up
I think the issue is that you are using a vector in the conditional statement of your if statement. An if statement expects a si...

alrededor de 9 horas ago | 0

Answered
Scatter plot customization question
Your third input is specifying the marker size. scatter(x,y,sz) Perhps a better choice might be a group scatter plot. Here, yo...

alrededor de 13 horas ago | 0

Answered
readtable, excel, date base
Perhaps with the DatetimeType name value pair. You can find details in the Name-Value Pair Arguments section of the documentatio...

alrededor de 22 horas ago | 0

Answered
Forming a matrix from data
To put elements on separate rows, you can either put a semicolon between the numbers, or enter them on separate lines. You have ...

alrededor de 22 horas ago | 0

| accepted

Answered
Convert string array to numerical vector
Use str2double A = ["01";"04";"12"]; B = str2double(A)

alrededor de 23 horas ago | 0

| accepted

Answered
how to use legend syntax properly
I think you might not understand what a legend is. Have a look at the documentation. It sounds like you want xlabel and ylabel...

1 día ago | 0

| accepted

Answered
How to create calcium traces of individual neurons and club them together in one representation (see image for reference)?
Look into stackedplot, or tiledlayout. If you are new to MATLAB, you may also benefit by going through MATLAB Onramp.

1 día ago | 0

Answered
How do I turn this 4x1 table to 60x1? It says "To assign to or create a variable in a table, the number of rows must match the height of the table."
You are trying to assing a table to a single element, resulting in the image. Perhaps you want to concatenate the tables on top ...

1 día ago | 0

Answered
change start point of plot
You can change the first point's y value from 105 to 0. d=datetime(2020,1,1):calmonths:datetime(2020,12,1); y = randi(160,[1,1...

1 día ago | 0

Answered
Iteration of Ideal Gas Law
Iteractions can be done using either for loops or while loops. If you want to repeat until a condition is met, a while loop is ...

1 día ago | 0

Answered
Plotting 3D lines with color
We are problably missing some details, but I can create a dummy example using the syntax you show, and it works. plot3(1:3,3:5,...

1 día ago | 1

Answered
Find values per day using a bin width.
A little creativity with groupsummary will get you the data you want. It allows you to group your data by day and by user-define...

1 día ago | 0

| accepted

Answered
Adding time and date to table
In MATLAB, all elements of one table variable should be of the same data type. For this reason, I suspect your table in MATLAB h...

1 día ago | 0

| accepted

Answered
Connection Error when installing add on
Try the suggestions mentioned here: https://www.mathworks.com/matlabcentral/answers/92634-why-do-i-get-a-connection-error-when-...

2 días ago | 0

Answered
How to reset zoom of MatLab coding window
Like scripts zoom similar to a browser. You can use ctrl +/- to zoom in/out. You can also use the crtl + scroll wheel of your mo...

2 días ago | 0

Answered
Adding a label to a data point on a graph that can be toggled to view by clicking on it
You could use the built in datatip functionality.

2 días ago | 0

Answered
How can I uninstall Matlab Drive Connector?
You can find uninstall instructions here: https://www.mathworks.com/help/matlabdrive/ug/install-matlab-drive.html#bvszpcd Yo...

3 días ago | 0

Answered
Color Variable not working in GeoBubble
Try the following syntax geobubble(lat,lon,sizedata,colordata) For your data, that means the following. geobubble(EventTypes....

3 días ago | 0

Answered
Update on filtering table
Use logical indexing instead. You can do that without the for loop. (untested) if ... rowsdelt = app.UITable3.Data(:,app.C...

3 días ago | 0

Answered
Figure axis: How can I change '0 1 2 3' into '0.0 1.0 2.0 3.0' while keeping ' x 10^9' on the top of y axis ?
Use the function ytickformat. x=-2:2; y=[0 0.75 1.5 2.25 3]*1e9; plot(x,y) ytickformat('%.1f')

3 días ago | 0

| accepted

Answered
Matlab Grader and resample()
I assume this is the website example you refer to? It works for me when I create and run the problem in a collection. Have you c...

3 días ago | 0

Answered
Find and fill in missing records/data/lines/rows from array
There's not enough details to be able to provide a solution, but take a look at the following functions ismissing fillmissing ...

4 días ago | 0

Answered
How do I display a plot based on the user input value?
You do not appear to have a variable yearBuilt. If this is part of your mat file, note that the syntax you use to load it loads ...

5 días ago | 0

| accepted

Answered
How do I put a .mat file into a function?
If you know the name of the mat file, you don't have to pass it in. As long as it is accessible (in the current folder, or in a ...

5 días ago | 0

Answered
Add Specific Numbers to x-axis
Use the xticks and possibly xticklabels function. x=0:142; y=linspace(0.1, 2.7,length(x)); bar(x,y) xline(52,'m--') xticks...

5 días ago | 0

| accepted

Answered
Scale right y-axis to the values on the left y-axis
I don't see how changing the scale of your Y Axis is going to help you. No amount of uniform stretching or compressing is going ...

5 días ago | 0

| accepted

Answered
Import or Export a Sequence of Files
Perhaps the issue is that paths is a structure containing several fields and not just the path. Look at the dir documentation pa...

5 días ago | 1

| accepted

Answered
Matlab does not plot data which are mirrored data
It's plotting it all. It just appears that your data overlaps itself. Compare these examples r=abs(-1:0.1:1); u0=-abs(-1:0.1:...

5 días ago | 1

Load more