Community Profile

photo

Cris LaPierre


Last seen: Today

MathWorks

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

9 hours ago | 0

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

10 hours 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); ...

2 days ago | 0

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

2 days ago | 0

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

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

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

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

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

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

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

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

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

3 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

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

4 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,:);

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

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

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

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

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

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

4 days ago | 0

Answered
Install school license as a student
Many schools have a site license for MATLAB already, as well as IT support staff to help students and staff access and install t...

4 days ago | 1

Answered
Help making interactive Image processing App
Consider looking at this example app.

4 days ago | 0

Answered
How can I write a loop with for?
I suggest going through Chapter 13 of MATLAB Onramp. Lesson 3 introduces for loops.

4 days ago | 1

Answered
can R2014a accept a live script?
No, it cannot. Live scripts weren't introduced until 2016a. Therefore, you must use at least version 2016a in order to open a li...

4 days ago | 0

Answered
How can I run a function on app designer using a push button?
Based on the error message, it appears your function Hip_Analysis_App does not have any outputs. Check your function declaration...

4 days ago | 0

Answered
How can I take the derivative of data from a .csv file and store it in a table?
x is a table already. Therefore, V and T are also tables. See this doc page on accessing data in a table. Basically, to do what...

4 days ago | 0

| accepted

Answered
how to make same component appear in different taps in app designer
No. But you can have two separate gauges and update them both at the same time. Inside the callback for each one, you could have...

4 days ago | 0

Answered
x data sorting in stem plot
By default, Categoricals are organized in alphanumeric order. If you want to impose your own order on them, use the reordercats ...

5 days ago | 0

Load more