# Cris LaPierre

### MathWorks

**Statistics**

RANK**23**

of 287,785

REPUTATION**10,354**

CONTRIBUTIONS

**4** Questions

**4,081** Answers

ANSWER ACCEPTANCE **
100.0%
**

VOTES RECEIVED**1,198**

RANK

of 19,428

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**

Input Size Mismatch on LSTM model development

The input to the lstmLayer is the number of features (a scaler), not the size of the input. See this answer: https://www.mathwo...

9 hours ago | 0

PlzHelp:Invalid training data. Predictors must be a N-by-1 cell array of sequences, where N is the number of sequences. All sequences must have the same feature dimension and

The error is in how the data is organized in imdsTrain.Labels It must conform to the following specifications https://www.math...

14 hours ago | 0

Error using medicalref3d/intrinsicToWorld Invalid argument at position 2. Value must be integer.

There appears to be an issue with the intrinsicToWorld function. There is no requirement in the documentation that these values ...

3 days ago | 0

| accepted

Replace Before A Specific Character

Is it a duration or a string? For a duration Just to give a different solution than the others, here is one way to update a du...

3 days ago | 1

Facing error in the optimization part. Kindly suggest solution

You have an indexing issue. Namely, w(r1). r1=reg1(i) reg1(1) = 11 w only has 7 elements reg1=[11,11,11,11,11,11,11,11,11,1...

4 days ago | 0

if nested functions supported in live scripts

Yes, MATLAB supports nested functions.However, you must call a function. You run a script. To enable the Run button, at the ver...

4 days ago | 0

| accepted

Plot coordinates of a tif image

Note that there is a projection associated with your SAR data. You need to know this projection in order to convert your scales ...

4 days ago | 0

how to use assert to test logical array

Use all. checkfuse = [true;false] assert(all(checkfuse),'Fuse error')

8 days ago | 0

| accepted

Inquiry on why matlab return certain values wrong

No value is assigned to f0 in the following condition if f12==0 Na=1:1:((fix(f10/2)-2)/2); for a=1:1:((fix(f10/2)-2)/...

8 days ago | 1

| accepted

Unable to perform assignment because the left and right sides have a different number of elements.

This error occurs because you are trying to assign more than 1 value to one element of a. % this Works a(1) = 5; % This dupli...

8 days ago | 1

| accepted

readtable with datetime, format problem

I think now that the issue is clearer, I'll propose another solution. The challenge now is that some of your files save the Rec...

9 days ago | 1

| accepted

readtable with datetime, format problem

The 'InputFormat' argument is only useful for date strings. Excel applies a display format to dates and times, so what you see i...

9 days ago | 0

Get quiver plot arrows to connect up contour lines

Getting the coordinates of your contour lines is fairly straightforward, as it's an output of the contour function. There's a li...

10 days ago | 0

skipping augmentedImageDatastore to train a net

You will need to remove it from your network. Look into removeLayer

11 days ago | 0

Aligning a linear and non-linear x-axis

The axes you are plotting into are linear, so I think the best solution would be to plot both plots using wavelength, and then c...

12 days ago | 1

Hydraulic Pipe - SIMSCAPE

Resistance and fluid density are not properties of the Hydraulic Ppeline block. Instead, use Linear Hydraulic Resistance and Hyd...

12 days ago | 1

MATLAB graders issues, i want to use one funtion from another problem

Each problem in MATLAB Grader is independent of the other problems. You can add external files to a problem for learners to use ...

12 days ago | 0

| accepted

Unable to perform assignment because the left and right sides have a different number of elements.

Two ideas come to mind. Both require that the number of points freqturned by freq(I) be the same for every sample. If you know ...

14 days ago | 0

The "run" command does not work in GARDER.

I assume you are refering to MATLAB Grader. Certain commands and functions are not allowed when running code in MATLAB Grader, i...

14 days ago | 0

| accepted

How can I open a hyperlink from a button callback in AppDesigner?

I get an error when using the command you shared linkstring = 'https://www.mathworks.com'; web(linkstring,'UniformOutput', fal...

15 days ago | 0

| accepted

Which products should I select ?

The good thing is you don't have to decide right now. You can use the Add Ons Explorer to add additional toolboxes as the need a...

15 days ago | 0

create script to matlab function

Check out the Refactor button in the ribbon. This will convert the highlighted code to a function. See this video demonstration...

16 days ago | 0

| accepted

Convert Excel to csv with exact formatting

To achieve what you have requested, I believe you will need to load the data into MATLAB and then write it to a csv file using f...

18 days ago | 1

| accepted

MatLab does not reads Excel sheet properly

readtable just loads the data as is. You will still need to write code to perform any manipulation to the data. Perhaps fillmiss...

18 days ago | 0

| accepted

optimization toolbox missing for simbiology

It is a separate toolbox. If it is included in your license, you can install it using the Add-Ons explorer. You can see a list ...

18 days ago | 0

| accepted

split a matrix into two matrices according to some rule

I would look into clustering. Here is an attempt that uses dbscan, a spectral clustring algorithm included in the Statistics and...

19 days ago | 2

| accepted

Not enough input arguments error while running kilosort in matlab

Process data is a function, not a script function [rez, DATA, uproj] = preprocessData(ops) When you call a function, you have ...

19 days ago | 0

is it built in function or a structure ?

It is a helper function that is included with this example. On the upper right corner of the example page, use the 'Open in MATL...

19 days ago | 1

| accepted

How can I use splitapply() in matlab appdesigner?

You could use a differnt function that incorporates grouping, like gscatter. load carsmall gscatter(Displacement,Horsepower,Mo...

20 days ago | 0

StackedPlot with two tables with specific variables

If they have the same number of rows, I think what you would want to do is T = [A(:,["variable1ofA","var2ofA", "var3ofA"]),B(:,...

22 days ago | 0

| accepted