Community Profile

photo

Cris LaPierre


Last seen: Today

MathWorks

1,036 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
Random fitting when use fittype function in Toolboxes
They are absolutely related. It is the randomly selected start point that is leading to you getting different results each time....

1 day ago | 0

| accepted

Answered
My MATLAB loop is not ending
Either your 'if' condition at the end of your while loop is always true, or your 'elseif' condition is never true. I would try t...

1 day ago | 1

| accepted

Answered
Exercise in "Data Processing and Visualization" not working?
Thanks for pointing this out. I've shared it internally. You can use the "See Solution" link to see what settings were expected....

1 day ago | 0

Answered
Index in position 2 exceeds array bounds (must not exceed 1).
I think the error message is clear on what the issue is. It appears your variable vi has a size of mx1. You are trying to index ...

2 days ago | 0

Answered
Im attempting to graph the union and intersection of this specific fuzzy set. But I am getting an error.
The error I get when running your code is that the vectors you plot have to be the same length. x is 901x1 while QuC and QnC are...

2 days ago | 0

Answered
Steepest descent method n shows error 'Index exceeds matrix dimensions.', how to fix this
The error means that somewhere in your code you are trying to access an element that doesn't exist. For example, if a variable h...

2 days ago | 0

Answered
Problem with subplots in a for loop
It doesn't look like you are using subplot correctly. The most current way to do this is using tiledlayout. There is a good exam...

2 days ago | 0

Answered
How to plot a ground surface in 3D using meshgrid?
This is one way. You can use meshgrid to turn vectors into matrices with values repeated in rows and/or columns. However, only Z...

3 days ago | 0

Answered
Integration of MATLAB Grader with App Designer
At this time, it is not possible to integrate MATLAB Grader into app designer. The LMS integration is achieved using LTI, a stan...

4 days ago | 1

| accepted

Answered
Undefined function or variable
The question should be do the variables exist in the workspace at the time you want to use them? Having them defined in a separa...

5 days ago | 0

Answered
Cannot get these errors to clear.
Your equations for CA, CB, CC in ODEs_CA3 function use a variable Cto that has not been created or at least does not exist withi...

5 days ago | 0

Answered
Convert a map in shapefile into occupancy map
Thank you for sharing your shapefile. The first thing to realize is that your shapefile's X and Y data contains data for 9 polyg...

6 days ago | 0

| accepted

Answered
Need help parsing text from .txt file
One way to skip a specific line in a file is to read it line by line and check the contents first. Here's a quick example using ...

6 days ago | 0

Answered
Index in position 1 is invalid. Array indices must be positive integers or logical values.
Your values are not integers. For example, what value should rat_ink(79.7,1) return? Valid indices are 1, 2, 3, etc.

7 days ago | 0

Answered
Change scale of second y-axis on figure
Use the ylim function to set the yaxis limits.

7 days ago | 0

Answered
Error using sin Not enough input arguments
sin is a function, which means you must give it an input. The error here is with the code sin*t at the end of your expression. D...

7 days ago | 0

Answered
Convert a map in shapefile into occupancy map
I'll take the "offer a tip" route. That means I may not know what I'm talking about. I have some familiarity with shapefiles, b...

9 days ago | 0

Answered
How to find average value of every 10 numbers within a set of numbers?
The problem is how you set up your loops. The first value of i is the length of speed, 452. The first value of j is trying to i...

10 days ago | 0

Answered
Using text, 2 variables, and decimals in fprintf
The documentation page is a great place to start. There, you'll see that the variables have to come at the end. Also, you don't ...

10 days ago | 0

Answered
Try catch error function not working
Your code must generate an error in the 'try' portion before it will execute what is in the catch. I don't see any reason why th...

10 days ago | 1

Answered
Help me to Solve ODE problem
Check your equations. Sr is always zero. This causes cst to always be zero, which then causes drdt to also be zero, causing dRdt...

10 days ago | 0

| accepted

Answered
How can I read data from excel file consecutively rather than taking random numbers ?
Maybe I don't understand your question, or you don't understand your code. Your code tells it to load a random file, and then c...

10 days ago | 0

Answered
Working with fileDatastore and loading its data
What is the name of the variable you are loading? That is a fieldname in the structure kost. You access it using dot notation: ...

10 days ago | 0

Answered
Extract X,Y data from scatter plot
Assuming you have a *.fig file and not a .png, first open the fig file in MATLAB then run the following code. s=findobj(gca,'Ty...

10 days ago | 0

| accepted

Answered
Array dimensions must match for binary array op.
The code runs just find for me. I don't have 'lake.tif', but I don't think that should matter. Try clearing your workspace or r...

11 days ago | 0

| accepted

Answered
Saving data in separate folders under different file names
I notice the lengh of the vector used for i is 90, but the length of Filename is 88. I suspect what is happening is that, when y...

11 days ago | 0

| accepted

Answered
Unrecognized variable x error
What is the value of n? The most obvious thing to me is that your for loop doesn't actually run, so x is never created. The lo...

11 days ago | 0

| accepted

Answered
Matlabonramp 13.2.
"Toggle" means to switch between to states (on/off, yes/no, in/out, show/hide, etc). A Further Practice section is an area to p...

14 days ago | 0

| accepted

Answered
plot 4 plots on 3 axes
Start by looking into yyaxis. As for adding a 3rd y-axis, see if this post helps.

15 days ago | 0

Load more

|