# Cris LaPierre

### MathWorks

**Statistics**

RANK**28**

of 244,121

REPUTATION**6,186**

CONTRIBUTIONS

**4** Questions

**2,533** Answers

ANSWER ACCEPTANCE **
100.0%
**

VOTES RECEIVED**602**

RANK

of 17,066

REPUTATION**N/A**

AVERAGE RATING**0.00**

CONTRIBUTIONS**0** Files

DOWNLOADS **0**

ALL TIME DOWNLOADS**0**

CONTRIBUTIONS**0 Posts**

CONTRIBUTIONS**0** Public Channels

AVERAGE RATING

CONTRIBUTIONS**0** Highlights

AVERAGE NO. OF LIKES

**Content Feed**

generate a matrix for each hour and every time it tells me -This is day 1 the ext temp is __ and these are temp for hour __ and display the matrix

Your code is already doing that (though I did add a semicolon to stop it from printing out T in every loop). If you want it to g...

10 hours ago | 0

Discrepancy between datenum and datetime?

It looks to me like there may be rendering issue here when the x values are datenums as opposed to datetimes. I added a scatter ...

10 hours ago | 0

| accepted

just signed up and can't figure it out as it says :"Error using plot Vectors must be the same length."

The result of diff is a vector (you named it k) that has one element less than the input vector (you named it f). The error mess...

11 hours ago | 1

| accepted

How can I extract only 10 compression cycles using following data

I think Star Strider gave a pretty good response to your previous question on how to extract cycles and plot them. https://www....

21 hours ago | 0

| accepted

Graph only plotting 1 point

The default syntax does not include a marker style. If your plot is only a single point, then you cannot see the line. Just incl...

21 hours ago | 0

Porblem in exporting a txt file

Here's how I would load the data using option 1. I'll let you worry about shaping the data to make the table you want. % branch...

21 hours ago | 0

draw a 3d graph with mat function

Your code is correct. You just need to increase the resolution of your mesh. Remember that the colon operator steps by 1 by defa...

1 day ago | 0

| accepted

why my second stl file is at an angle and not horizontal as first ?

STL files contain vertice coordinates. What you see on the plot is an exact representation of the vertices in the file. If it is...

1 day ago | 0

how to calculate mean value in each row of data?

Use mean and specify the dimension (1=down rows, 2=across columns) M = mean(A,dim)

1 day ago | 0

| accepted

Analyzing Rainfall data and sorting the data appropriately

Look into timetables, groupsummary and perhaps grpstats.

1 day ago | 0

How to combine multiple plots using subplot?

New to MATLAB = MATLAB Onramp (Ch 9 introduces plotting) I think the issue is that you are inconsistent with your subplot numbe...

1 day ago | 0

| accepted

Change number of drop downs based on spinner value using matlab app designer?

It's possible. See this page. You may find this blog post instightful as well. The hard part is going to be dynamically coming ...

1 day ago | 0

The graph wasnt showing the appropiate answer

You have specificed a sample frequency of 10 Hz (Ts=0.1). Therefore, according the Nyquist criterion, the highest frequency you ...

2 days ago | 0

Matalb App inputs dont work unless pressed?

This sounds like an issue with how you process your data. Inspect what the code in your checkbox callback functions is doing to ...

2 days ago | 0

Export data to a new raw of an existing Excel

I would use writetable with the 'WriteMode' set to 'Append'. 'Overwrite' is the default. See this example.

2 days ago | 0

Make an Histogram with 24 bars

Check out the documentation for histogram. You likely want to use one of these syntaxes. histogram(X,nbins) histogram(X,edges)...

2 days ago | 0

Simplify Matrix decimal to integers

It's likely going to take two functions: one to convert your symbolic expressions to numeric, and a second to round. I would pr...

2 days ago | 0

Why am I getting this error : "Warning: Imaginary parts of complex X and/or Y arguments ignored " .

Because you are trying to plot complex values on cartesian axes. You create cx and cy as complex numbers % ...

2 days ago | 0

Number of points inside polygon is returning 0 but should be a bigger number

In line 114 of the code you have shared, you have reversed your lat (you name it Y) and lon (you name it X) data. Flip those, an...

2 days ago | 0

| accepted

How do I select specific rows in a 1x15 matrix?

See Ch 5 of MATLAB Onramp (indexing into and modifying arrays)

2 days ago | 0

Fractional expression to decimal expression in symbolic function

See this answer Summary: use vpa(x,d) or use digits

3 days ago | 0

| accepted

How do I watch demo video without flash player on my company PC?

The getting started with MATLAB content has moved oniine. The main getting started page for MATLAB (similar to your screenshot) ...

3 days ago | 0

| accepted

Unrecognized function or variable

You start your script with 'clear all', so no variables exist in your workspace. Then in your 5th line of code, you try to use y...

3 days ago | 0

How to perform Double Sum with the help of loops?

See the nested for loop example on the for documentation page. BTW, if i+j=3, then there is no double summing necessary, right?...

3 days ago | 0

"Array indices must be positive integers or logical values." - a new problem

What are your input values for First and Last? What are the values for vlength1 and vlength2? The error means you are trying to...

3 days ago | 0

Only the final iteration in the loop is saved. How to save all the iterations ? * Note: all are displayed, but not saved except the last *

You need to use indexing to assign your angles to a different element of Angles each loop. Right now, you overwrite Angles every...

3 days ago | 1

| accepted

How to plot shapes in one figure

Use hold on https://www.mathworks.com/help/matlab/ref/hold.html

3 days ago | 0

How do I convert a group of 3x3 matrices that are contained in a 3xN array, into a 3x3xN/3 array?

MATLAB uses column-major order by default, which means the data is organized internally as if the columns were stacked head-to-t...

3 days ago | 1

| accepted

Problem with drawline and drawpoint in 2021b

What is happening is that drawline is registering the click on the canvas (i.e. it is not limiting clicks to when the cursor is ...

3 days ago | 0