Community Profile

photo

Cris LaPierre


Last seen: Today

MathWorks

764 total contributions since 2018

Cris LaPierre's Badges

  • Guiding Light
  • Thankful Level 2
  • Revival Level 4
  • 6 Month Streak
  • Solver
  • Knowledgeable Level 4
  • First Answer

View details...

Contributions in
View by

Answered
How to make gauge value variable?
You can programmatically change the properties of a gauge. For a list of properties, see this page. The code might look somethi...

7 hours ago | 0

Answered
How to reformat a table
Not pretty per se, but it works. T1b = mergevars(T1,5:14); [r,c]=find(T1b.Var5>0); linind = sub2ind(size(T1b.Var5),r,c); T3 ...

1 day ago | 0

Answered
How to get decade means of monthly 3D satellite data?
Do you want a single temperature for each decade, or you you want an average for each lat/lon coordinate pair? I wasn't able to...

3 days ago | 0

| accepted

Answered
Change uiAxes DateNum to DateTime in AppDesigner for animatedLine Plot
Can you convert your X data to datetime before plotting? Plots support datetimes as x values. You can convert a string to dateti...

3 days ago | 0

| accepted

Answered
I cannot access to saved scripts or files on MATLAB online
Try resetting your online session. You can find instructions here.

3 days ago | 0

Answered
Can't run xlsread on Ubuntu Machine
The error seems to suggest either the name of your file is wrong, or the file is not in your current folder. If you need help ch...

4 days ago | 1

Answered
plot data X,y,z data as surface
Your code looks good. How exact are you expecting the colorbar to be? You've interpolated the data, so it's not going to exactly...

4 days ago | 1

Answered
Unable to read an imported CSV
This error message suggest the file is not in your current folder. You likely had to browse to it when you used the import tool....

4 days ago | 0

Answered
Why Command Window cannot access custom Functions defined in end of Matlab Script?
Functions defined at the end of a script or function file are called local functions. By design, these cannot be accessed outsid...

5 days ago | 1

| accepted

Answered
Error using xlsread (line 129). File name must be a string or character vector.
What happens if you click "Run Function" instead of Submit? Your code seems to run fine in MATLAB. I also created a problem in ...

5 days ago | 0

| accepted

Answered
How to open UITable in a new window using an imported text or spreadsheet file
Here's some example code that works for me. vals=readtable("datafile.csv"); fig = uifigure; uit = uitable(fig,'Data',vals); ...

7 days ago | 0

| accepted

Answered
Unistall without unistaller.exe
There are some suggestions provided in this post.

7 days ago | 0

Answered
Changing <undefined> in a table to NA
I suggest trying to use fillmissing. B = fillmissing(A,'constant','NA');

7 days ago | 0

| accepted

Answered
How to use UIAxes to display image in app viewer
I suspect you need to specify the parent axes for the contour plot contour(app.UIAxes,ImgOut(:,:,round(Planes/2)),[TH,TH],'Line...

7 days ago | 0

Answered
How can I change the font size of tick labels on the axes of a graph?
It's in the documentation under axes properties: plot(1:5) ax=gca; ax.FontSize = 20 You can also change a single axis by spe...

7 days ago | 0

Answered
Overriding default Matlab key board short cuts
You can manage keyboard shortcuts in your preferences. From the Home tab, click Preferences in the Environment section. When the...

7 days ago | 0

Answered
How to add to values of a field?
Use your loop counter variable to specify where to add the value. By field do you mean in a structure? for a = 1:3 b.fiel...

8 days ago | 0

Answered
Problem with applying a function (kstest) to cell arrays
The issue I see is you are using arrayfun, which applies the function to each element in the vector as opposed to each cell. My...

8 days ago | 1

| accepted

Answered
How to save variables in MATLAB function in the workspace
You could save them to a mat file. When you want to plot them, load the mat file in your script. You could also consider placin...

8 days ago | 1

Answered
Sorting csv filenames according to date/time
The way I can think to do this is to extract the date and time text from the filename, convert it to a datetime, sort the dateti...

8 days ago | 0

| accepted

Answered
Working with Matlab for a 15! x 30 matrix
That many rows qualifies this as a Tall Array. Perhaps consider looking into how to analyze Big Data in MATLAB.

9 days ago | 1

Answered
Increasing value of each row from matrix A to create Matrix B, then replace 21 into 1 while the rest into 0 to create Matrix C
B=ones(length(A),30); B=cumsum([A B],2) C=B==21

9 days ago | 0

| accepted

Answered
It's Possible chage the X-axis in order to hide the blank space?
There are some FileExchange functions that may serve your needs. See this post. If you want to do this yourself, see the discus...

9 days ago | 0

Answered
Splitting matrix A in Matrix B and C based on column 2 values
ind = A(:,2)>=47; B = A(ind,:); C = A(~ind,:);

9 days ago | 0

| accepted

Answered
Extracting time from a string
I think I found the source of your data. Does that sound right? I used to be very involved in XC and track and field, so of cou...

9 days ago | 2

Answered
display dates and times of imported .csv file in Date Picker Menus in App Designer
A datetime is, by definition, a date + a time. I suggest reading in the date and time as strings, then combining them and then c...

9 days ago | 0

Answered
Search Table for value using other variables
ind = t.P1==48.3 & t.P4==16 & t.P7==44.79; valP8 = t.P8(ind) Of course you'll have to use the actual table and full variable n...

9 days ago | 0

| accepted

Answered
How can I change the data type of a column?
I suggest turning your matrix into a table. Each table variable can be a different data type. To change, you could simply do the...

9 days ago | 0

Answered
how to get rid of while loop running infinitely in battery sizing coding?
I suggest using the debugger to set some breakpoints and inspect the value of i. I suspect it keeps finding conditions that keep...

9 days ago | 0

Answered
How do I read multiple csv from one folder and acess them in one in matlab
Do you want to keep each data file separate? If instead you want to combine all the data into a single variable, consider using ...

9 days ago | 0

Load more