Community Profile

photo

Cris LaPierre


MathWorks

396 total contributions since 2018

Cris LaPierre's Badges

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

View details...

Contributions in
View by

Answered
Can't plot multiple figures in one axes in app designer
When you push the plot button, what error message are you getting? I suspect it says "Undefined function or variable 'on'." Try...

5 days ago | 1

| accepted

Answered
Trouble using retime to obtain 1 year of hourly average values from 15 years of hourly average values
There are several options to try if you want to explore. The functions varfun and rowfun work on all variables in a timetable. I...

9 days ago | 1

Answered
how to create a char
You don't have to create a file. carsmall is a mat file. Loading it loads all the variables you need into your workspace. I jus...

9 days ago | 0

Answered
How to get Matlab read my char file in excel?
dlmread shouldn't work. From the documentation: "(Not recommended) Read ASCII-delimited file of numeric data into matrix". "M =...

9 days ago | 1

Answered
How to resolve the error "Grader sent no response"?
As part of the Machine Learning course, you are granted access to MATLAB Online for free. Try submitting there. It will work.

9 days ago | 0

Answered
saving gray scale images in a 3D array
Not sure. It works for me. Check that all your images have the exact same dimensions. Also, sanity check your code. What happe...

11 days ago | 0

Answered
How to do the 3D vector plot from dataset?
Here's the code that will load and plot the data. opts = detectImportOptions("11x11x11 in 3D.xlsx"); opts.VariableNames = {'X'...

11 days ago | 0

Answered
Clear the content of axes under panel using push button
The code would be cla(ZDomainCascadedImageAX) Your issue is more likely related to variable scope. The pushbutton will have it...

11 days ago | 0

Answered
Loop through images in GUI
Unsure what is suppose to happen when transitioning 3->4, 6->7, and 9->1, but I'd do something like this function next_block_Ca...

11 days ago | 0

Answered
GUI imagesc not working
Need some more details about your variables if you want help. Are you seeing any error messages? Also, what is the size of ha...

11 days ago | 0

Answered
Setting a limit for a linear fit line
How are you fitting? Are you using polyfit? fit? fminsearch? MATLAB will only fit the data points you give it. If you want to l...

11 days ago | 0

Answered
How to create GUI
If you've never used Guide before, I recommend using app designer. Here's some sample code that can help you out.

11 days ago | 0

Answered
how to plot a signal from text file data using matlab gui push button?
Try this answer. It's a similar request with a simple answer.

11 days ago | 0

Answered
Importing Time data from excel.
I find readtable works best with Excel files. opts = detectImportOptions('file_name.xlsx'); data = readtable("file_name.xlsx",...

11 days ago | 0

Answered
Contourf and colormap limits
The problem is your data goes from [-6.5 8]. The 16 contour lines have been drawn for that. Then when you call caxis, you get ri...

11 days ago | 0

| accepted

Answered
how to load .mat file into gui with edit box
The file name isn't important since you capture that in a variable. What is the name of the variable in your mat file? When you...

12 days ago | 0

| accepted

Answered
3D matlab plot
I can confirm that MATLAB is plotting the values recorded in the GPS file. How are the GPS values obtained? In what units?

13 days ago | 0

Answered
I am getting an error in GUI.Someone please help me out
Your pushbutton3 callback has a comment that is missing the '%' at the beginning. ... handles.LH3=LH3; handles.HL3=HL3; ...

13 days ago | 0

| accepted

Answered
How to change the StepTolerance in fslove
See the documention for fsolve options. You can use optimoptions. options = optimoptions(@fsolve,'StepTolerance',1e-10) You ...

13 days ago | 0

Answered
How can I add a a best fit line, a scatter plot data? having trouble
I'd use polyfit. This example shows you to do a simple linear regression. x = 1:50; y = -0.3*x + 2*randn(1,50); p = polyfi...

13 days ago | 0

Answered
two conditions for plotting
I'm not exactly sure what you are trying to do, but you are being very careless with your indeces. For starters: A is a 4x3 mat...

14 days ago | 1

| accepted

Answered
Matrix dimensions must agree
What version of MATLAB are you using? If pre 16b, the issue might be the 3rd dimension. k= rgb2gray(anhGoc2); makes k a 512x51...

14 days ago | 1

Answered
How to find the coordinates ( x-axis and y-axis) of the white square
Just the x and y coordinate of every white pixel? img=imread('image.jpeg'); imshow(img) [m,n] = find(img==255); If you want ...

14 days ago | 0

Answered
How to interpolate an ellipse given data points?
The challenge is to get your x to be unique and increasing. If I create a new variable that is the cumulative distance of each p...

14 days ago | 0

| accepted

Answered
Websave on csv returns empty file
I have an idea. When I go to the url specified in the websave command (http://stooq.com/q/d/l/?s=^aor&d1=20190303&d2=20190405&i=...

14 days ago | 0

Answered
how to find the Matlab function definition
I'm afraid there is not any information to be had. >> which SVPWM3L_TimingCalculation C:\Program Files\MATLAB\R2018b\toolbox\p...

15 days ago | 0

Answered
Fit data to an exponential curve using fitdist
If you have an idea of what your fit equation is, use fittype and fit (curve fitting toolbox). ft = fittype('a.*(1-r).^x',... ...

15 days ago | 0

| accepted

Answered
How to use fread to read little endian data?
I would seek first (outside the while loop). Depending on your data, fgetl may not make sense (files read by bytes don't have e...

15 days ago | 1

| accepted

Answered
Making the color, for each function that is plotted with a loop, correspond to the color bar .
There are a couple things to be careful of. First, there is no connection between the colorbar and line series color. The colorb...

15 days ago | 1

| accepted

Answered
Quiver Plot from matrices
What do you mean by not wanting to give quiver the values it needs? Not sure how you would create the plot without doing that. H...

15 days ago | 0

| accepted

Load more