Community Profile # Cris LaPierre

### MathWorks

Last seen: Today Active since 2018

#### Statistics

All
• • • • • • • #### Content Feed

View by

Trouble with Radio Button group in App Designer
The callback for your start button needs to check the value of your radio button and use an if statement to load one mlx file if...

ongeveer 6 uur ago | 0

How to use logical indexing for a column of 0 and 1
The best place to get started learning about logical arrays is Ch 12 of MATLAB Onramp. A simple example: x = (1:10)'; % extr...

ongeveer 6 uur ago | 0

| accepted

Plot - Remove axis ticks but keep grid lines
A couple things. You have discovered you have to have ticks to have a grid. However, labels are separate. Leave the ticks and re...

ongeveer 6 uur ago | 0

| accepted

Unable to change default radio button in button group
I discovered that your workflow works for a brand new radio button group. However, once I close the app and reopen it, if I try ...

1 dag ago | 0

| accepted

Array indices must be positive integers or logical values.
Are you getting a warning instead of an error? If so, this means the code still runs, but MATLAB is warning of possible ways to ...

1 dag ago | 0

Remove rows from a table if a variable with the same name in another table does not exist
Have you tried using the Join Tables live task? This will interactively let you align two tables using key variables. Once you h...

1 dag ago | 0

| accepted

Output in two columns
Because k=1:(numPort-1) and numPort=3

1 dag ago | 1

Running an older version of app designer in a new one

1 dag ago | 0

Problem in working with ismembertol
LIA = ismembertol(A,B) uses a default tolerance of 1e-6 for single-precision inputs and 1e-12 for double-precision inputs. Try ...

1 dag ago | 0

ODE45 producing NaN values for a set of differential equations
Your numerator and denominators are both 0. And 0/0 = NaN x=[0 0 0 0 0 0]; r0 = 1; L = 2.5; k = 353160*2; m1 = 3500/2; m2 ...

2 dagen ago | 1

| accepted

Why my plot is blank?
The most likely reason is that V and Tr are a single number. By default, MATLAB does not plot using markers, so if there is only...

3 dagen ago | 1

bar chart group and stack
The bar function doesn't contain a simple way to accomplish this, but perhaps this post in the file exchange does what you want?...

4 dagen ago | 0

Converting time to a epoch
In MATLAB, you can read this in as a duration (see options here) using readtable. It may autodetect the time correctly. If not, ...

4 dagen ago | 0

How do you allow the user to select a line in a GUI and change the color?
There is no built-in way to do this that I am aware of. However, your lines appear to be fairly horizontal. Capture the handle...

4 dagen ago | 0

how to store values from loop in vector
See Ch 13 of MATLAB Onramp (Programming) for an interactive introduction to using for loops. You can also find some examples of ...

4 dagen ago | 0

| accepted

Plotting with a for loop
If your variables y,z,a & b are column vectors (and if they are not, you could easily make them column vectors), you could do th...

4 dagen ago | 0

| accepted

Weekly retime grouping by ID on large dataset
Look into groupsummary. You can group by multiple variables. % groupsummary MeasurementTime = datetime({'2015-11-11';'2015-11-...

4 dagen ago | 0

plot function not working
You have saved the script containing your code as 'plot.m'. However, that is the same name as the plot function in MATLAB. Give...

5 dagen ago | 0

Can we rotate the plot(x, y)
You could reverse your x and y inputs. Use -x to make the triangle point up. for w=0.5:0.1:1 l = w; thet = 0:1:60; theta = t...

5 dagen ago | 0

| accepted

Finding the column and row
One feature of a table is that your columns can be different data types (e.g. a double and a cell). In a matrix, all your data ...

7 dagen ago | 0

How do you capitalize the first and the third letter of each word in a sentence?
There are different ascii codes for lowercase and uppercase letters (https://www.ascii-code.com/, see codes 65-122). I suspect t...

7 dagen ago | 0

Related to importing a stl file in matlab
You would need to use stlread to load an STL file into MATLAB. Once in, you can use the view function to see specific camera ang...

7 dagen ago | 0

How to plot quivers only on pixels with an intensity greater than 0?
quiver will not plot nan, so a simple solution may be to replace any value of 0 with nan. U(U==0)=nan; V(V==0)=nan; quiver(X,...

8 dagen ago | 1

| accepted

what function should I use in order for the matlab to evaluate the entered number if it is proper fraction, improper fraction, or Whole number?
You appear to be using MATLAB Grader, which does not support user interactions like input. You will need to find a different way...

8 dagen ago | 0

I am getting an error Index exceeds the number of array elements in the following code. Kindly help me out with this problem.
We don't have enough information to tell you which variable is causing the problem. However, one of your variables has less than...

8 dagen ago | 0

| accepted

Convert list of indices to array
You should be able to use the reshape command on the 4th column % Setup your matrix syms e31 e15 e32 e24 e33 a= [1, 1, 1, 0...

8 dagen ago | 1

| accepted

Parse Error, usage might be invalid MATLAB Syntax
All functions must be at the bottom of your script. See here: https://www.mathworks.com/help/matlab/matlab_prog/create-function...

9 dagen ago | 0

changing values in an array
See Ch 5 of MATLAB Onramp (Indexing into and Modifying Arrays). You will also find Ch 12 (Logical arrays) helpful for what you ...

9 dagen ago | 0

| accepted

Unable to Rename Columns of Table
The reason the first one isn't working is because you have a typo. Look at how you spell eclipses ecplises = ... eclipses.Prop...

10 dagen ago | 1

| accepted