Community Profile

photo

Cris LaPierre


Last seen: Today

MathWorks

890 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
Plotting graph with excel file
We'll have to make some assumptions, since we don't have all the details. I'm going to assume your data is in a table with 3 va...

3 hours ago | 0

| accepted

Answered
Scaling of one axis only in 2D plot
Set the position property. See this post.

3 hours ago | 0

Answered
I need an established reference on optimizing Matlab code.
Not sure if this is what you are looking for, but here are some resources I'm aware of: MATLAB Performance Optimization Perfor...

15 hours ago | 0

| accepted

Answered
Add text to column numbers in variables editor
I'm fairly certain only tables can have named columns. A similar post can be seen here.

21 hours ago | 0

Answered
How to prepare imagedatastore for Image to single value regression
Let's fix the error first. What is Y_train? Converting it to categorical is simple enough. Y_train = categorical(Y_train); Wit...

1 day ago | 0

Answered
detecting and removing eye blinks from 4-channel EEG signal
We don't have nearly enough information to help you. However, you might try using the Find Local Maxima and Minima task in the l...

1 day ago | 0

Answered
Z must be a matrix, not scalar or vector
z needs to be the same size as X and Y. Perhaps you mean to do something like this? t=linspace(0, 2*pi); T = meshgrid(t); x=2...

2 days ago | 1

| accepted

Answered
How to remove first 19 rows from a multidimensional cell array
Use a cellfun. % Setup A(1)={rand(100,10)}; A(2)={rand(100,11)}; A(3)={rand(100,10)}; A(4)={rand(100,15)}; % Remove firs...

2 days ago | 0

| accepted

Answered
RE-use helper function on multiple GUI components
Since the app structure is a structure, you can dynamically set the field names. There are a couple ways you could do it. Here's...

2 days ago | 1

| accepted

Answered
How to make a zoom in y map in MATLAB Visualizations Custom
Can you add this to your code? geolimits([-12.210 -11.923],[-77.306 -76.936])

2 days ago | 0

Answered
Offline execution of a program in MATLAB online
You need to maintain an active connection or your session will time out. See Hisham's reply here.

2 days ago | 0

Answered
For loop is not working
A loop runs the same code over and over. That means you overwrite your variables each time. As you've written it, the result wil...

2 days ago | 0

Answered
overlaying 3 contourf plots into 1 figure.
All 3 contourf plots are there. You can verify this with the plot browser. You do only see the one that was plotted last. The le...

2 days ago | 0

| accepted

Answered
Put data into bins with pre-specified intervals
Use histcounts and specify the bin edges using the syntax [N,edges] = histcounts(X,edges)

3 days ago | 0

| accepted

Answered
Turning triangulation data into 3D spatial matrix
I would see if the inpolygon function can be used here. It works for 2D data, but with some creativity, you may be able to get i...

3 days ago | 1

| accepted

Answered
Plotting a single fit for multiple years by averaging the fit co-efficients of individual years.
How is your data organized? I would probably get the day-of-year for all dates, plot the data against that, and then fit a curve...

3 days ago | 0

Answered
How we can segment the time series signal in Matlab?
You can accomplish this with the retime function. You first need to convert your data to a timetable. Then call retime using the...

3 days ago | 0

Answered
unable to read time stamps from a csv file, unable to read the csv file in matlab
If you got it working with readtable, use that. You just need to learn how to access the data in a table. For that, see this doc...

3 days ago | 0

Answered
Matlab GUI problem using load
The error suggests your HW_03.fig file is not in the same folder as your HW_03.m file. A gui created in Guide requires both file...

3 days ago | 0

Answered
Put data into bins with the equal number of elements
I'd suggest looking into this file exchange submission.

3 days ago | 0

| accepted

Answered
Making a GUI to zoom in on x-axis range
A few options I can think of. Have them use the axes toolbar. It already contains tools for zooming in and out. Have them ente...

3 days ago | 0

Answered
animate 2d plot
Here's one way to do it following the instructions on the Line Animations documentation page. I reduced the number of points to ...

3 days ago | 0

Answered
Inserting string into specific field in table
Table variables have an assigned data type. You must set the datatype to match the data you want to store. Filenames are text, n...

3 days ago | 0

| accepted

Answered
How to replace string values in a column of a table into numeric?
I would first convert fruit to a categorical, then I would rename the categories. X.fruit = categorical(X.fruit); X.fruit = re...

3 days ago | 0

Answered
XLS read function round off values while reading. Even in raw data type. How to get full value?
I can test in r2017a and it's reading in as expected. It doesn't know what to do with your 2nd number since there are two decima...

3 days ago | 0

Answered
Graphing exponential function with imaginary term
I suspect it has to do with how you define theta and z. Check out the documentation for linspace. The last number is the nubmer ...

3 days ago | 0

Answered
Want to download 480 x 367 pixels image on Matlab online. How to do it?
This images you are looking for are not contained in the zip file. Is there an additional zip file you must download for this co...

4 days ago | 0

Answered
MAKE OBJECTIVE FUNCTION FROM ALGORITHM
You can use the Refactor tool in live scripts to convert selected code to a function. See this page.

4 days ago | 0

Answered
Can anyone help resolve this issue?
Do you have access to the Text Analytics Toolbox? If so, consider using the removeWords function.

4 days ago | 0

Answered
livescript: Plots not appearing in PDF export
Can you share your live script here? If not, consider contacting technical support.

4 days ago | 0

Load more