Community Profile

photo

Cris LaPierre


Last seen: Today

MathWorks

2,154 total contributions since 2018

Cris LaPierre's Badges

  • Ace
  • 12 Month Streak
  • Thankful Level 2
  • Revival Level 4
  • Solver
  • Knowledgeable Level 4
  • First Answer

View details...

Contributions in
View by

Answered
Import data from txt-file with writematrix
You are not going to be able to use importdata, readmatrix, etc. because the formatting of your file is inconsistant. You are mo...

10 hours ago | 0

Answered
what is the error here? It is showing "Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters."
You have split your equation over two lines without telling MATLAB. You must add an ellipsis at the end of the first line to ind...

10 hours ago | 1

Answered
Import and plot stl file in AppDesigner
If you are using stlread to load the stl file, I suggest using one of the corresponding plot functions (trimesh, triplot, or tri...

1 day ago | 0

| accepted

Answered
Plotting leaving empty space before line begins
Yes, by default MATLAB will attempt to set the ticks at round numbers. If you prefer to have the limits exactly match your data,...

2 days ago | 1

| accepted

Answered
I'm new to solving ode's in Matlab, i followed tutorial, and i do not understand the error
The dimension error is due to this line, with the problematic part indicated: [... Bf*(Sa/N)*I - Be*Sa*D - Alpha*Ip -y*Ip + kk...

2 days ago | 1

| accepted

Answered
I need help writing code
You'll find all the help you need in MATLAB Onramp. Ch 4 covers creating arrays Ch 6 covers array calculations Ch 9 covers pl...

3 days ago | 0

Answered
App Designer Error using matlab.ui.control.internal.model.AbstractNumericComponent/set.Value (line 111) 'Value' must be a double scalar.
In that line of code, you are converting the value of Gm to a string and then assigning the string to the Value property of your...

4 days ago | 1

| accepted

Answered
How to store an initial value in an array. x should start at 0 and y should start at 1. The step size is 0.25. I do not know how to store my initial x and y values in the array.
I suggest Chs 4, 5 and 13 of MATLAB Onramp (vectors and arrays, indexing and modifying arrays, and for loops)

4 days ago | 0

Answered
How to solve duration/double Error in yearfrac when forecasting prices?
My suggestion is to turn your PriceDates into datetimes. The yearfrac function can work with those. Do you know what year the ...

5 days ago | 1

| accepted

Answered
Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters. ERROR in plotting graph
Your plot syntax is wrong. You cannot define a variable (f) inside your plot command. Use the documentation to identify a valid ...

6 days ago | 1

| accepted

Answered
Matlab: differential equation: starting conditions are wrong?
I'm no expert, but isn't the integral equal to That way, the algebra works out to match the result MATLAB is giving you sym...

6 days ago | 1

| accepted

Answered
How to cut off 1/4 of half sphere
Set the corresponding quadrant values equal to nan. There are several ways to do this. Here is one. [x y z]=sphere; x(11:end,1...

7 days ago | 1

| accepted

Answered
Index in position 1 exceeds array bounds (must not exceed 1).error in SVM
The error appears to be with how you are indexing DF. The error message is telling you the index in position 1 (rows) exceeds th...

7 days ago | 0

Answered
Plotting a function with difference between 2 vectors?
The shape is caused by where you can divide by 0. The difference is that, in the first case, this occurs along the diagonal line...

7 days ago | 0

| accepted

Answered
Illegal use of reserved keyword "end".
The problem is you forgot the closing bracket when creating dy1. [T,Y] = ode45(@Bqfun1,[0 2],[1 1 -0.01]); plot (T,Y(:,1),'b',...

7 days ago | 2

Answered
How to group by in matlab?
Perhaps with groupsummary? A=[1 3 1;1 3 2;1 3 3;1 3 4;3 1 2;3 1 3]; [B,BG]=groupsummary(A(:,3),{A(:,1),A(:,2)},'sum'); C = [c...

7 days ago | 0

Answered
Como hacer que una función trigonométrica haga una gráfica en curva y no líneas rectas
Las funciones trigonometricas no creen graficas. Te dan valores que corresponden a los puntos indicados. Plot connecta estos pun...

7 days ago | 0

Answered
Not enough input arguments. Error in chp12ex7_b (line 3) X=y(1); T=y(2); HELP how do I fix this error?
Your code runs (see the outputs in your original post now). Do you still see the error? If so, consider clearing your workspace ...

7 days ago | 0

Answered
help me with some exercises?
MATLAB Onramp El capitulo 6 le ayudara con A, y el capitulo 13 le ayudara con C.

8 days ago | 0

Answered
Please Help I have this code however, I don't know how to input it in MATLAB. I am practicing how to make apps
It looks like you had a MATLAB app to begin with and copied all the code out of it. App designer files have the extension *.mlap...

8 days ago | 0

Answered
Functions in app designer
This page shows how to add a custom function to an app. Note that the first input is the app structure.

8 days ago | 0

Answered
How can I move data on a graph?
Perhaps you want to use errorbar to create you plot instead of plot.

8 days ago | 0

Answered
App Designer: control focus on pressing Tab
Tab order appears to be linked to the order of your components in the component browser. See this answer for a way to change the...

8 days ago | 0

| accepted

Answered
Using a for loop to extract values from a matrix
Typically this is done using your loop counter to index into your vector. You can learn more about indexing in Ch 5 of MATLAB O...

8 days ago | 0

Answered
Save Matlab data in Excel with ActiveX
See this example and this Answers post.

8 days ago | 0

Answered
My code works when i open the main file directly, but dont work when i open the file from matlab!
Perhaps you need to change the extension of your file? In MATLAB, .mat files are not executable scripts. They are binary files t...

9 days ago | 0

Answered
Plot polars in app designer
Support for PolarAxes in app designer was added in R2018b. What version of MATLAB are you using? Perhaps the example 'Create Po...

9 days ago | 0

| accepted

Answered
ODE Solver Function File Help - Must return a column vector
Check the dimensions of h, your output from Julia_Prob1a_fun. The ode solver expects a column vector, which has dimensions mx1. ...

10 days ago | 0

Answered
plot from discrete points
Ch 9 of MATLAB Onramp covers plotting.

10 days ago | 0

Load more