Community Profile

photo

Cris LaPierre


MathWorks

466 total contributions since 2018

Cris LaPierre's Badges

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

View details...

Contributions in
View by

Answered
How to use two different variables in few complex equation in for loop?
It's i that you changed, so you shouldn't have to do anything with j. In this case, I'd recommend first creating a variable for...

8 days ago | 1

Answered
Why image is shifted when using ifft2
The shift is related to your hsize value in fspecial (shifted ~0.5*hsize in both X and Y). I'm not sure I can do any better exp...

12 days ago | 0

Answered
Problem in making heatmap
Here's a sample of how I might do this. Note that I'm using some randomly generated numbers. The 5th column is integers. I defi...

12 days ago | 0

| accepted

Answered
What's wrong with my for loop?
You are currently overwriting your loop counter variable (t). This is incremented automatically by the for loop. You don't need ...

12 days ago | 0

Answered
Syms toolbox not working Matlab 2019
The symbolic toolbox does work in MATLAB r2019b. If it does not work for you, you likely have an install issue. For help with th...

12 days ago | 0

Answered
How to use two different variables in few complex equation in for loop?
The variable data will only contain values for the case when j==15*k0. If you want to store all values, data must be a matrix. Y...

12 days ago | 1

| accepted

Answered
How to convert minutes, seconds, milliseconds to seconds?
You don't sepcify your file type. I'm going to assume a csv though this only matters for getting the data into MATLAB. My goal i...

22 days ago | 0

| accepted

Answered
In matlab grader it says i am trying to write a scrip instead of a function.
The "Solution script not found" sounds like an issue discovered in an update that was rolled out on the 13th. That issue has bee...

22 days ago | 0

Answered
How to change background color of an image in a GUI
If you can save your image as a png instead, see this post about displaying png images with transparent backgrounds. Even with ...

1 month ago | 1

| accepted

Answered
How to seperate my function file from my script
There are several examples given on this page.

1 month ago | 0

Answered
How do I Perform Summation based on dates from Excel File
It sounds like you need to read the data in as a timetable. opts = detectImportOptions('Oghenovo_Okpako_TT.xlsx'); data = read...

1 month ago | 1

| accepted

Answered
"Installer does not have sufficient permissions to install this add-on. Add-Ons installation folder must be writable"
This is likely a permissions issue on your computer. There are two easy ways around this. Either run MATLAB as an administrator...

1 month ago | 1

| accepted

Answered
Why the file path get wrong after I packed my app code written by App Designer to a Web App?
Not sure it provides much of a description, but you can read a little about in this answer.

1 month ago | 0

| accepted

Answered
How to draw the below type of graph in MATLAB?
I didn't worry about importing your data specifically since it appears to be a summary and not the raw data anyway. % import ba...

1 month ago | 2

| accepted

Answered
Simulink Onramp 13.1 Task 4
Just went through this task. It works for me. First suggestion would be to restart MATLAB and see if the behavior continues. If ...

1 month ago | 0

| accepted

Answered
How do i do calculations within a table based on groups
Doable, but it's not pretty. Groupsummary only allows you to use data from a single variable. I couldn't find a way to get that ...

1 month ago | 0

| accepted

Answered
How to initiate an existing callback from a current callback in Matlab app-designer?
callbacks are just functions. Call them using app.<callback name>. Just set the inputs correctly. function NextButtonPushed(app...

1 month ago | 0

| accepted

Answered
I wish to open a saved figure in the figure number of my choice.
See this post. Basically, use the figure command and specify the number. figure(5) Just beware that, if that figure exists (i...

1 month ago | 0

Answered
How to add annotations to a plot by accessing data from a table?
Use the text function. You can use sprintf to build the text to display on the plot. If you need it to be automated, use logic...

1 month ago | 0

Answered
Unable to save files in MATLAB Online
The file system for MATLAB Online is MATLAB Drive. Try logging in to drive.matlab.com and see if your files are showing up there...

1 month ago | 0

Answered
long and lat map plot
Does this post about creating a plot from an nc file help?

1 month ago | 0

| accepted

Answered
Error opening Excel file in Matlab using actxserver
I think you need to include the entire path in the filename. file = 'C:\user\me\Documents\example.xls'; excel = actxserver('Ex...

1 month ago | 0

| accepted

Answered
Regarding matlab cody solutions
Cody is meant more as a game. It offers a chance to solve various challenges and then compare your solution to what others with ...

1 month ago | 1

| accepted

Answered
Axis labels for subplot figure
Does the solution given here work for you?

2 months ago | 0

Answered
Copy and Paste Matrix into Word
Your code for doing this programmatically is close. I'd suggest using sprintf to create the formatted strings, then write that t...

2 months ago | 0

| accepted

Answered
Copy and Paste Matrix into Word
There is a quick and easy way to get it to Word. If you are using a live script, from the Live Editor tab select Save > Export t...

2 months ago | 0

Answered
reading tables from .doc word file
Here's some starter code for you. Be aware that this code assumes that, if there are multiple tables, they are all the same size...

2 months ago | 0

| accepted

Answered
How can I get access to MATLAB online for an EdX-course?
There is a free license provided to all students enrolled in the course. Follow the instructions on the Software page, located i...

2 months ago | 1

| accepted

Answered
Problem with retime function
It can be done in pieces. retime applies the same method to all timetable variables. You'll need to create new timetables (only ...

2 months ago | 0

| accepted

Answered
Does try,catch delete variables from the workspace?
I'm curious if you are aware of MATLAB Grader. This could potentially spare you a lot of work.

2 months ago | 0

Load more