Community Profile

photo

Cris LaPierre

MathWorks

Last seen: 1 día ago Active since 2018

Statistics

All
  • 36 Month Streak
  • Community Group Solver
  • Thankful Level 4
  • Most Accepted 2021
  • Ace
  • Revival Level 4
  • Solver
  • Knowledgeable Level 5
  • First Answer

View badges

Content Feed

View by

Answered
How to join multiple Excel files of varying lengths
Here's something based on using fileDataStore. This assumes your data is numeric, as it uses readmatrix to load the data from yo...

alrededor de 17 horas ago | 0

Answered
Live Tex Variable Updates the Whole Script Despite Run Option Set to "Current Section"
Your script does not have any sections in it, so the whole script runs each time. You must add a section break before your Bellm...

1 día ago | 0

| accepted

Answered
Saving multiple single vectors in one Matlab file
You overwrite your variable C in each loop, and you overwrite C.mat as well, so the final contents are just what was created in ...

3 días ago | 0

| accepted

Answered
How to give one x and y axis label when using tiled layout('flow')?
Use the xlabel and ylabel functions with the first input being your tiled layout object. The code below is taken from this examp...

3 días ago | 0

| accepted

Answered
How can I get the average data of the combined csv files?
I would use a datastore to load all the data into a single variable. You can see an example of how to use datastore to do this i...

3 días ago | 0

Answered
Meshgrid lighning and how to use contour around the plot
You might find the settings in this example helpful. Not a perfect match, but here's what I came up with x=linspace(-2,2,1000);...

3 días ago | 1

| accepted

Answered
Trying to code from Polymath
I recommend going through MATLAB Onramp. It's free, and takes about 2 hours. That should give you the necessary skills to code t...

4 días ago | 0

Answered
how can I take mean of fourth dimension of daily data?
I see your times are recorded as decimal days: Times = 0 0.1250 0.2500 0.3750 0.5000 0.625...

4 días ago | 0

Answered
Can anyone please help ?
This error message means your code is taking too long to execute. This is usually caused by accidentally creating an infinite lo...

4 días ago | 0

Answered
Can someone help with error "index exceeds number of array elements"? I attached image as to what it needs to look like..
The error means you are indexing a variable using an index value that is greater than the number of elements in your variable. ...

4 días ago | 0

Answered
Is there any algorithm to find out how much time it took the signal to reach it's peak point. We can find it out manually, but is there any function or algorithm to calculate?
What comes to mind are the following: Find change points live task - add this task in a live script to interactively find abrup...

4 días ago | 0

| accepted

Answered
Changing content between 2 tab delimiters
I'd use readtable to load the data into MATLAB, and then make the changes to variable Q. See the Access Data in Tables doc page....

5 días ago | 1

| accepted

Answered
For every time stamp t do
Ch 12 of MATLAB Onramp introduces how to write if statements and for loops.

7 días ago | 0

Answered
Plot the same color for all iterations of a loop
I don't see any code for actually creating the plots, so it's hard to understand exactly what you are doing. If you do not spec...

7 días ago | 0

Answered
Latex Interpreter Not Producing Expected Results
The problem is that x2unit contains symbols that have meaning in LaTeX markup in MATLAB. Consider including your unit inside the...

8 días ago | 1

| accepted

Answered
Have the user input a filename containing an ODE, which has to be passed to a function.
The problem is that (t,[x1_mesh(i); x2_mesh(i)]) is being treated as indexing your variable MODE. It is not being recognized as ...

9 días ago | 0

Answered
Computing displacement from accelerometer data
I think the first issue is to find the magnitude of the acceleration vector using the data from all 3 axes. From there, you can ...

9 días ago | 0

Answered
How I can Plot Data Samples as Data values in Y-axis and Sample counter converted to micro second values in X-axis? Then get average and standard variation values?
I highly recommend going through MATLAB Onramp, but the quick answers are 2. Select your x values, then use Ctrl+click to selec...

10 días ago | 0

Answered
Removing rows with empty values in table
Empty is not a recognized missing value in MATLAB, so rmmissing does nothing. Missing values are defined according to the data ...

11 días ago | 0

| accepted

Answered
Problem in "Increasing Automation with Functions > Creating and Calling Functions > (5/5) Create and Call Local Function", Task 1, MatLab Fundamentals
I just tested it, and it works find for me. Can you share a screenshot of what you are seeing? Try exiting the course and then ...

12 días ago | 0

Answered
Driving, Cycling, and Walking Activity Recognition with Accelerometers: How to distinguish between the activities using data obtained from an accelerometer?
I would point you to the following examples Human Activity Recognition Simulink Model for Smartphone Deployment Human Activity...

13 días ago | 1

| accepted

Answered
Index in position 1 is invalid. Array indices must be positive integers or logical values.
I believe the issue here is that many of the values of vidIn are 0, which is not a valid index of htextinsCent. In MATLAB, your ...

14 días ago | 0

Answered
Create a script circle.m that will which receives diameter as an argument and returns two outputs area and circumference. your script should prompt to give diameter
You are creating a function, while the instructions say to create a script. You might be interesting in the input function.

14 días ago | 0

Answered
Expanding Array as following;
What about this? A=[1 0 0 1]; B = [A;A;A]; B = B(:)'

15 días ago | 0

Answered
Workspace doesn't show varaibles in MATLAB online
Can you share a picture of your session? I haven't been able to duplicate the behavior. Try logging out and logging back in. If...

15 días ago | 0

Answered
MATLAB thinks my entire script is commented, no idea why.
How was this file created? When I open the attached file in MATLAB, there are a lot more spaces between each letter. When I o...

15 días ago | 0

| accepted

Answered
cumsum function question for integration
It has to do with the fact that sin(t) starts at 0 and is positive until pi. cumsum is just adding up the Y values, so it oscill...

15 días ago | 0

Answered
I want to do exponential fitting for power decaying with time
The easiest approach is to use the Curve Fitting app inside a live script. This does require having the Curve Fitting Toolbox in...

15 días ago | 0

Answered
Plot dynamics of an ODE
I'm assuming your goal is to plot a line for when the function rs is equal to zero for various values of p. You could do that us...

16 días ago | 0

| accepted

Answered
Matlab User Interface - how can I fit more script in one line?
See this answer: https://www.mathworks.com/matlabcentral/answers/89333-how-to-increase-the-portion-reserved-for-writing-in-edit...

16 días ago | 0

| accepted

Load more