Community Profile

photo

Cris LaPierre


Last seen: Today

MathWorks

1,267 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
How to use external function to plot a graph in GUI or app designer
A couple things stand out. First, your function has no inputs, so app, x, and y do not exist within the scope of your function. ...

2 hours ago | 0

Answered
torque vs speed characteristics of dc compound motor(additive series) on simulink.
Does this post help? How do I model a Compound DC machine using SimPowerSystems 4.1.1 (R14SP3)?

6 hours ago | 0

Answered
How to model a motor driver for a PMDC motor in Simulink
See this documentation page on a Permanent Magnet DC Motor model.

7 hours ago | 0

Answered
I need some help
Have you read through the code? Lines 3-4 in your first image seems to provide important information: "You do not need to know...

9 hours ago | 0

Answered
How to set data in next row of MATLAB GUI table?
Probably this has to do with the break command you have at the end of your for loop. You should read what this function does. In...

9 hours ago | 0

Answered
How to open .SRT files?
Without the actual file, we're only guessing. With that in mind, I'd use readtable. It can handle multiple data types, and will ...

9 hours ago | 0

Answered
My plot comes out to be discontinuous
The problem is that linspace most likely is not creating a vector that only contains the user inputted values at the beginning a...

9 hours ago | 1

| accepted

Answered
Reading in a text file to an array without matlab functions
You must have been given some direction as to how to do this. There is no way to read it in without using at least some MATLAB f...

9 hours ago | 0

Answered
Trying to make the baseline of my data follow a sine curve.
If you want to introduce baseline wandering, how are you hoping to use fit or polyfit? Why not just add the sin wave to your ecg...

22 hours ago | 1

| accepted

Answered
The result of Spectrogram()
There is a documentation page that gives some details. You might find this previous Answers post helpful as well: How to unders...

22 hours ago | 0

Answered
Unrecognized function or variable 'ej_circuito'
You are apparently trying to use a function (ej_circuito) that MATLAB cannot find. Ensure that this function is either defined a...

22 hours ago | 1

| accepted

Answered
Inserting data into matrices where gaps exist.
We don't have much to work with, but perhaps you can join your tables? If you want to try this interactively, use the Join Table...

1 day ago | 0

| accepted

Answered
How to extract all variable rows in a table for all 1-Jan's, 2-Jan's, etc over 30 years
My recommendation would be to use groupsummary. Something like this (untested). dayAvg = groupsummary(ECCC,"DateTime","dayofyea...

1 day ago | 0

| accepted

Answered
How to solve 3 equation 2 variable system?
Have you tried a linear algebra approach for solving an overdetermined system? b = [4.09945; 4.1565; 7.6936]./28316.85; A = [(...

1 day ago | 1

| accepted

Answered
Displaying selected file name in App Designer
Right now you are just capturing the file name. If you want to display the path and filename, best to capture them both. Use the...

1 day ago | 0

| accepted

Answered
Nested While Loops won't restart
You likely need to reset the value of pCheck to something great than 1 before reaching the inner while loop. Otherwise, it will ...

1 day ago | 0

Answered
Filtering excel data!
I would suggest using logical indexing (Ch 12 MATLAB Onramp) to select the dates and #Deaths that match the user selection. Fro...

1 day ago | 0

Answered
Patch lateral surface of a cylinder
Yes, your patch coordinates are not being created correctly. You need to have each patch sequentially. This means defining the 4...

1 day ago | 1

| accepted

Answered
How can i change values in matrix in random fashion?
I'd use numel, and randi to identify 2 random points, and then, using linear indexing, multipy those 2 points by -1.

1 day ago | 0

| accepted

Answered
Why findobj cannot find a TexBox (annotation) object?
Try using the object handle (txb) directly. plot(1:10) str = 'Straight Line Plot from 1 to 10'; txb = annotation('textbox',[....

1 day ago | 1

| accepted

Answered
How to display charts using curve fitting toolbox? Disappearing chart
Remove or comment out the following line of code from your script figure(1) Every time you call the figure command, it creates...

1 day ago | 0

Answered
How do I get the value of seconds in a datetime table?
+1 to dpb's comment. Subtracting datetimes gives you a duration. You can convert your duration to your desired units - days, hou...

2 days ago | 0

Answered
How to do boxplot for vectors with differents lenghts?
How many boxplots would you like to see? I assume one for each file. Use the documentation to help you get the syntax right. T...

2 days ago | 0

Answered
How to define the Min LeafSize of a Random Forest
When you choose to optimize hyperparameters, you cannot specify a value for MinLeafSize. The program will try to find the best l...

2 days ago | 0

Answered
Time Series with month names
Import your months as categoricals. Categories are organized alphabetically by default. Use reordercats to place them in order....

2 days ago | 1

Answered
How to add greek symbols in plot text
The text function uses the tex interpreter by default. Use that to create include greek letters (and super/subscripted text) in ...

3 days ago | 0

Answered
How do I make my axis label text like this on a graph?
MATLAB axis labels use the tex interpreter by default. So just take advantage of that. xlabel('^{super} Normal _{sub}')

3 days ago | 0

Answered
While plotting, how to Convert YYaxis left via some formula and display it on YYAxis right...(Using R2020a)
The YTick location and label are separate properites, though by default are the same value. I would probably try to do this by c...

3 days ago | 0

| accepted

Answered
Pareto chart not displaying all inputs (some too small(?))
The default behavior is described in the documentation: "By default, either the tallest 10 bars or first 95% of the cumulative ...

3 days ago | 0

Answered
MATLAB questions and answers
I think you will find plenty of people willing to answer whatever questions you may have, but you will likely not find much succ...

3 days ago | 0

Load more