Community Profile

photo

Cris LaPierre


Last seen: Today

MathWorks

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

etwa 11 Stunden ago | 0

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

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

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

ein Tag 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',...

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

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

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

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

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

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

2 Tage ago | 0

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

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

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

3 Tage ago | 0

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

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

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

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

4 Tage ago | 0

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

5 Tage ago | 0

Answered
deleting of rows in a matrix
I'd use a logical array (Ch 12 of MATLAB Onramp) created by ismember. I had to fix some values of A. % Original matrix A=[0.02...

6 Tage ago | 1

| accepted

Answered
Building a matrix inside a for loop
See this example.

6 Tage ago | 0

Answered
How to change the style of plot with different colors using matlab?
There are ways to do this, but not using plot. See this answer. It does require you determining a good way to get the colors to ...

6 Tage ago | 0

Answered
Calling a number from an edit in a uicontrol in a separate function
It looks like you are trying to build an app programmatically. If you haven't already done so, I recommend looking at this examp...

7 Tage ago | 0

Answered
how to increasse Bar3 plot bar thickness in both axies
You could try using the 'Width' name value pair (see this example), but I think the bigger issue is the scale of your X vs Y axe...

7 Tage ago | 0

Answered
1-cos(x)^2 doesn't simplify?
Perhaps try using the Steps name-value pair. syms x simplify(1-cos(x)^2,'Steps',10)

7 Tage ago | 2

| accepted

Answered
how to store the data in table after running if loop
You need to assign the results from each look to a matrix. See this example. You can learn more about for loops in Ch 13 of MAT...

7 Tage ago | 0

| accepted

Answered
XY MODEL COLOR MAP/PCOLOR
This looks like the HSV colormap. I'm not sure what you have for data, but first thought is to use imagesc. % create a matrix ...

7 Tage ago | 0

Answered
ode 45 doesnt work
There is an issue with your initial conditions. See this post on how to set up an initial value problem when t ~= 0. However, y...

7 Tage ago | 1

Answered
My timeSpan is considered a nonscalar operator when using if statement. Help.
Your if statement is not doing what you think it is doing. To learn more about how an if statement works, I suggest going throug...

7 Tage ago | 1

| accepted

Load more