Community Profile

photo

Cris LaPierre


Last seen: Today

MathWorks

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

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

circa 9 ore ago | 0

| accepted

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

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

circa 11 ore 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.

circa 11 ore 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 ...

circa 21 ore 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...

circa 21 ore 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 ...

circa 21 ore 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 giorno 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 giorno 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 giorno 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-...

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

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

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

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

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

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

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

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

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

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

4 giorni ago | 1

Answered
explanation of this code
It means "or". See here.

4 giorni ago | 0

Answered
Importing Excels sheets into app desinger
The importdata function does not have an input for spcifying Sheet. I suggest using readmatrix or readtable, which do allow you ...

4 giorni ago | 0

| accepted

Answered
plot the deformed shape
Your syntax for applying the deformation is correct. Perhaps your values of Displacement are not what you expect? We don't have ...

4 giorni ago | 0

| accepted

Answered
Help with regexp of varying filenames
Perform 2 checks, one for MESA, one for MAF. They use max on the combined result. % Case 1 cur_study_path='E:/MESA/IMAGES/Exam...

4 giorni ago | 0

Load more