Community Profile

photo

Cris LaPierre

MathWorks

Last seen: 1 day 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
TOOLBOX FOR ANATLYSIS OF FLEXURAL ISOSTASY
Here's where my googling led me: https://pubs.geoscienceworld.org/gsa/geosphere/article/13/5/1555/353716/Toolbox-for-Analysis-o...

8 hours ago | 0

Answered
Why I got an error in "plot(X1,sqrt(2*g*X1)*tanh(sqrt(2*g*X1)/(2*L)*t),'o')" in the following code??
There is no error in your code. Just a warning because you are plotting imaginary numbers.

10 hours ago | 0

Answered
I have a problem regarding an Index because it exceeds array bounds.
I suspect X is not the size you think it is. Since your error is saying that the max number of rows is 37, it appears that perha...

11 hours ago | 0

Answered
How to avoid horizontal shifts after applying GroupByColor on boxcharts?
Typically, groups of boxplots share the same x value (see here and here). So what is happening is MATLAB is making room for one ...

13 hours ago | 0

Answered
Error: Custom function fitting in MATLAB
data2fit2(:) and model_data(:) and weights4scaling do not all have the same size. A = rand(3) B = rand(2,1) % Your error A-B...

1 day ago | 0

| accepted

Answered
how can I process certien frames from a video?
How are you reading in your frames? Are you using VideoReader? I haven't tried it, but following the examples on the linked pa...

1 day ago | 0

Answered
Change UTC settings in Matlab Grader
If you are creating a MATLAB Grader course (i.e. hosted at grader.mathworks.com), you can set your timezone in the Edit Course s...

1 day ago | 0

| accepted

Answered
Seeking help to list all Yticks
You need to set yticks first, then assign a label for each tick. Something like this (updated code a little). data = readtabl...

2 days ago | 0

| accepted

Answered
How can I access a record of the Command Window using MATLAB Grader?
One workaround could be to write an assessment test that calls the functions using evalc. This captures the command window outpu...

2 days ago | 0

| accepted

Answered
Importing data from an Excel file with multiple tabs
Use the 'Sheet' name-value pair to indicate which sheet to read the data from. Documented here: https://www.mathworks.com/help/m...

5 days ago | 0

| accepted

Answered
Read data and transfer comma to dot with detectImportOptions
I would use readmatrix and specify the DecimalSeparator. d_lops = readmatrix('trial.txt','DecimalSeparator',',')

5 days ago | 0

| accepted

Answered
What is the meaning of x=x(:).'?
x=magic(5) x(:) x=x(:).'

5 days ago | 1

Answered
Plot 3d plot with different colors depending on the X and Y combination
See this page: https://www.mathworks.com/help/matlab/creating_plots/color-3-d-bars-by-height-1.html and this Answer: https://ww...

6 days ago | 0

Answered
MATLAB Onramp: Further practice section command window minimized
Will just add a comment that, in most course interactions, the command window is collapsed by design. This is because the intera...

6 days ago | 0

| accepted

Answered
I can't find system identification toolbox on apps even thought I have it installed, how can open it
You are installing a toolbox, with functions and apps that you can use in your code. It won't show up in the apps tab. However, ...

6 days ago | 0

Answered
Why am i getting error in wthresh? please help
I believe the issue is with your 2nd input. Valid inputs are 's' and 'h'. You are using 'soft'. y = linspace(-1,1,100); thr = ...

7 days ago | 0

Answered
Why is my code in Matlab Answers not colorful?
Not sure who you sent the email to, but please report this here: https://www.mathworks.com/support/contact_us.html

7 days ago | 1

Answered
Converting datenum to datetime when using writetable
You convert your datetimes to datenums, and then write those numbers to Excel, which is what you are seeing. Don't convert your...

7 days ago | 0

Answered
how to fix error message Invalid expression as When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.
You need to properly end the line that creates your legend. %this legend('x_1', 'x_2', 'x_3', ... (list all the state variable...

7 days ago | 0

| accepted

Answered
I am unable to find Signal Builder block in Simulink .
The Signal Builder block has been removed. For more information on why you should migrate your models, see Migrate from Signal B...

7 days ago | 0

Answered
Why will uifigure not create a window in r2023a?
For technical support, please contact support.

7 days ago | 0

| accepted

Answered
I am getting errors on my plot of live data collected from a rover.
You are trying to index to an element in your variable that does not exist. Position 1 is your rows index, The error message is...

7 days ago | 0

Answered
How to add a line on the surface plot at a specific x value?
Repeat the same process you did for making your surface, just adjust the x values to be your desired values. Note, I think you...

8 days ago | 0

| accepted

Answered
Converting table data to datetime
You need a date to make it a datetime (it will automatically use today if you don't supply one). Perhaps you want to use duratio...

8 days ago | 0

Answered
I cannot use interp2 as MATLAB tells me my grid arrays do not have an NDGRID structure, but I am still able to do a surface plot with no errors.
EDIT: fixing variable assignment per @Jon's observations An ndgrid means your data is regularly sampled in space. If you look a...

8 days ago | 0

| accepted

Answered
Fitting equation to data
Use the 'Options' input to adjust the StepTolerance property. Create your input using optimoptions.

8 days ago | 0

Answered
how to create this type of plot having two signals on one axis?
Just use plot with hold on. It looks like your X values determine how they align. x1=1:5; y1 = 5:-1:1; x2=5:9; y2 = 1:5; ...

8 days ago | 0

| accepted

Answered
image to matrix but the matrix is to much coloumns and rows
The size of your matrix will match the resolution of your image. If you want less rows/columns, you will need to reduce the reso...

8 days ago | 0

Answered
Can't view my courses in My account.
You do not need a license to take an Onramp course - just a MathWorks account. Which one are you trying to launch? Try navigati...

8 days ago | 0

Answered
How do i generate the "furnace" in simscape or simulink?
It appears that image is taken from the House Heating System example. You can open this model by running the following command ...

8 days ago | 0

Load more