Community Profile

photo

Cris LaPierre

MathWorks

Last seen: Today Active since 2018

Statistics

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

View badges

Content Feed

View by

Answered
Append values in a new column
If your tables have the same variable names (order does not matter), then just use square brackets. newTable = readtable(fullFi...

2 days ago | 0

Answered
loading ECG signal and displaying it in time doman
It would appear your mat file does not contain a variable named EKG. The fix is to use the actual name of the variable, or be su...

2 days ago | 0

Answered
How to read data from .m file in GUI?
See the answer here. You would have to run the script from the gui. Then the variables it creates would exist in the correspond...

19 days ago | 0

| accepted

Answered
plot stream over two spheres
qr1 is all NaNs. Assuming the countours are supposed to be your streamlines, you should check your equation. I'm not sure your f...

19 days ago | 1

| accepted

Answered
where do I find web server app product?
You can find instructions on downloading and installing Web App Server here.

19 days ago | 0

Answered
Index in position 3 exceeds array bounds. Index must not exceed 1.
You have a variable that is an mxnx1 array, and your code is telling MATLAB to index the 3rd dimension with a value >1. theta1 ...

20 days ago | 0

Answered
ButtonDownFunction on an image in App Designer
Use the axes ButtonDown callback function (added to app designer in R2020b). Rt click on the UIAxes and select 'Callbacks > add ...

20 days ago | 1

| accepted

Answered
MALTAB standalone desktop app deployment has error: how to identify the error message?
Have your app create a log file. See this answer for how to do that. Run the app until the error is encountered, then check the ...

20 days ago | 0

Answered
i have made a matlab code of gauss-siedel but there's a slight problem . i need to make the output print 20 iteration but i only get 18. any advice?
If you need a specific number of iteractions, use a for loop instead of a while loop.

20 days ago | 1

| accepted

Answered
3D plot in app designer with for loop.
I'm not exactly sure what you mean by 'doesn't work', but I'm guessing you only get the final scatter plot. In app designer, you...

20 days ago | 0

| accepted

Answered
Index in position 1 exceeds array bounds (must not exceed 1)?
Apparently there is only one row in Y, and your code is trying to access a second row. Y = 1:3 % Works Y (1,1) % Doesn't Wor...

20 days ago | 0

Answered
I have initial value problem that I have to write the right side into a vector function
The hints are in the instructions. You are not solving the problem the way you are asked to. Because your equations are coupled...

20 days ago | 0

Answered
running ble freezing MATLAB software after update
Did reverting back to R2020b fix the issue, or does it still happen? Either way, please contact support to report this.

20 days ago | 0

Answered
How to import Excel table with column of as individual variables?
Try the rows2vars function on the result of readtable. It reorients a table so that rows become variables. The variables will s...

20 days ago | 0

| accepted

Answered
i'm having issues using format short in my code
Because you are using symbolic variables. For symbolic, try using the digits function instead. syms t digits(4) E = 9000; %...

20 days ago | 1

Answered
Index in position 3 exceeds array bounds. (Must not exceed 1).
Your variable theta1 is apparently an mxnx1 array, and your code is telling MATLAB to index the 3rd dimension with a value >1. ...

21 days ago | 1

Answered
How can I replace multiple indices of a matrix with specific values?
Setting two separate values means two separate assignment commands. Since your values may not always be in the same row/column, ...

21 days ago | 0

| accepted

Answered
Did LiveScript Get Worse in 2020b?
You do need to be very intentional about when you use 'clear all', as that also clears the JIT compliled code, slowing down your...

21 days ago | 0

Answered
Create and save a table
Since you already have the variables defined, I would create a variable of data type table. varnames = ["r(m)" "b(r,t)(m)" "P(r...

21 days ago | 0

| accepted

Answered
What is the difference between
See this page: Files Generated AFter Packaging MATLAB Functions

22 days ago | 0

Answered
How to import csv files in MATLAB?
Use readtable, readmatrix, or readcell. My preference is readtable.

22 days ago | 0

| accepted

Answered
Ask about certain example in MATLAB documentation.
That example was designed for MATLAB R2021b. Some of the options used do not exist in previous versions of MATLAB. This exampl...

22 days ago | 0

| accepted

Answered
Line prob at o2
It is using linear indexing to extract the 136th cell from o2. Linear indexing counts down the rows, column by column. Item 136 ...

22 days ago | 0

| accepted

Answered
Trying to solve for roots
MATLAB does not do implied multiplicaton. You are getting the error in your first image because you have f = @(x) .625-(x^2/(2*...

23 days ago | 0

Answered
How to plot variable against time
I recommend the following chapters of MATLAB Onramp. 4: vectors & matrices 6: array calculations 9: plotting and 12: progra...

23 days ago | 0

| accepted

Answered
Uigetfile multiple selection in MATLAB app designer
"Could it have something to do with the fact that I'm using MATLAB online?" Yes. Multiselect with uigetfile is not currently po...

23 days ago | 1

| accepted

Answered
how do i draw the function of 3t^2+2t-0.5
MATLAB Onramp. Ch 9 covers plotting, but you may need some of the earlier chapters to know how to set it all up.

23 days ago | 0

Answered
How can I save a table to excel file so that all excel cells have not specific format?
Use writetable. A quick test showed a table containing text and numbers that I saved using writetable was using the general form...

23 days ago | 0

Answered
how to find value in the matrix using index?
See Ch 5 of MATLAB Onramp.

23 days ago | 0

Answered
Matrix of buttons in AppDesigner
First, see this answer. The summary is it is often better to arrange everything on the canvas ahead of time, and then change the...

23 days ago | 0

Load more