Community Profile

photo

Cris LaPierre


MathWorks

352 total contributions since 2018

Cris LaPierre's Badges

  • 6 Month Streak
  • Thankful Level 1
  • Pro
  • Knowledgeable Level 4
  • Revival Level 3
  • First Answer

View details...

Contributions in
View by

Answered
Plotting using x-axis arrays that are not in monotonically increasing order?
Is your x vector evenly sampled? Without having actual data, my suggestion would be make x=1:length(latitude) and plot that. The...

3 days ago | 0

| accepted

Answered
Fitting an Equation on to graph
If you have the curve fitting toolbox, define your fit equation using the fittype function. Using that fit object, fit to your d...

9 days ago | 0

Answered
How to change for loop to flip graph?
We don't have your variable V so I can't verify, but would adding this to the end of your code do it? ax=gca; ax.YDir = 'rever...

10 days ago | 0

Answered
Index in position 2
The ";" instead of ":" is one issue as madhan ravi pointed out. However, another issue is with your indexing of tdx in your for ...

11 days ago | 0

| accepted

Answered
Matlab online is not working for me. It is showing "You already have an active Matlab session. Do you want to log out of the session and start a new one?" When I clicked "yes", it simply is not working. What should I do?
try resetting your MATLAB Online session: Go to https://drive.matlab.com Log in In upper right, click on your name and sele...

11 days ago | 0

Answered
I installed matlab.mathworks online for machine learning course. Now it does not display anymore any simple function like A=eye(5). What went wrong and how to fix? thanks.
Has your license expired? If not, try resetting your MATLAB Online session: Go to https://drive.matlab.com Log in In upper ...

11 days ago | 0

Answered
adjust scale of axes
Sorry, but not sure what that may be. What version of MATLAB are you using? Was this in a live script or a figure window? One w...

13 days ago | 0

Answered
Subplot according to Real size
There is no good way to do what you want with subplot. Even if you merge multiple plots, there is no control over the size. You ...

13 days ago | 0

| accepted

Answered
Using switch case with multiple variables (instead of just n, with n1, n2, etc.).
You can only switch on one variable. Try this instead x1=4; x2=4; y1=-4; y2=4; switch true case x1>0 && y1<0 && (y2>0 ...

13 days ago | 0

| accepted

Answered
Large Text File Datastore
From the documentation, "Tall arrays provide a way to work with data backed by a datastore that can have millions or billions of...

13 days ago | 0

| accepted

Answered
how to insert an equation in a edit fill
What do you mean by 'doesn't take the equation'? What is the expected behavior? How have you created this in app designer? I...

13 days ago | 0

Answered
How to insert a colorcloud into a subplot
I'd probably set up all the plots, then add the uipanel last. figure; % Maximize the figure window. set(gcf,'Visible','on','u...

13 days ago | 2

| accepted

Answered
How to get activation key
Depends on the use. For private use, consider purchasing the home license. To explore other options, visit the MathWorks stor...

16 days ago | 0

| accepted

Answered
2D plot of a matrix using colors
There is a challenge here. If you just plot all of CH4emission1 you will just get a block that covers up the map. If you want to...

17 days ago | 1

| accepted

Answered
Using interp1 to interpolate y values
Since interpolating your data doesn't make sense to me, I suggest trying to downsample y instead. idx46 = round(linspace(1,1534...

19 days ago | 1

| accepted

Answered
why my graph doesnt start at 0, and how to fix it?
Which axis is supposed to start at 0? X or Y? X is years. That does not start at 0 because you define it to start at 1: years=...

19 days ago | 0

Answered
Range of X values given Y parameters on graph
Are you looking for contiguous data within that range of y-values or do you just want the value of x that corresponds to the fir...

19 days ago | 0

| accepted

Answered
How place the tick at the mid value of specific color range and uniform color bar across different ranges of data
I'll start a new anwer using a different approach. This time we'll manually define everything - no shortcuts. That should allow ...

19 days ago | 1

| accepted

Answered
Hi! i have a error in example file.
You are trying to call a function that is not in your current folder nor on your path. It looks like this is the example you ar...

20 days ago | 1

| accepted

Answered
How to get\read image from axes in GUI push button callback function and display the characters from the image in edit text ?
How'd you get the image into the axes in the first place? You should already have the data if you plotted it, so you don't need ...

21 days ago | 0

Answered
How place the tick at the mid value of specific color range and uniform color bar across different ranges of data
Don't have your functions, so here's a quick mockup of how I might do it. % Use data set included in MATLAB surf(peaks) % Cre...

21 days ago | 1

Answered
how to import data from workspace to gui?
Haven't tested anything to be sure, but have you looked into the function assignin?

1 month ago | 0

Answered
How can I crop a graph
The best method that comes to mind is to modify the data that is displayed (update line XData and YData) so just the relevant da...

1 month ago | 0

Answered
How can I group column of data with the same time stamp and get the row mean of each group?
The functions findgroup and splitapply allow you to group by similar time and take a mean of all data in each group. However, th...

1 month ago | 0

| accepted

Answered
Why no pasting allowed in "Matlab Answers"?
You can paste. We do it all the time. However, you have to use keyboard shortcuts: Copy: ctrl+c Cut: ctrl+x Paste: ctrl+v On...

1 month ago | 0

| accepted

Answered
Finding sequences and choose first one from that sequence
Simplifying somewhat. Try this % find magnitude of largest number in column 1 multFac = 10^ceil(log10(max(A(:,1)))) % Plan is...

1 month ago | 1

Answered
How to open two files instead of one, using this "for" loop?
I was thinking going much simpler. Again, unless there is a reason you are making it so complicated, why not just do something l...

1 month ago | 1

| accepted

Answered
fminbnd gives "Operands to the || and && operators must be convertible to logical scalar values"
Your objective function must return a scalar value. It appears to not always be doing that. When iteration=1 and i=42, it return...

1 month ago | 0

Answered
3D plot with multiple files
There's some punctuation issues making it difficult to understand the description of your data. Here's what I understand: X-val...

1 month ago | 0

| accepted

Answered
add reference point with known x y coordinates on imagesc
If you have the computer vision toolbox, use insertText. If not, use the text function. text(x,y,'+') Just keep in mind that ...

1 month ago | 0

Load more