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

2 months 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...

2 months 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...

2 months 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...

2 months 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...

2 months 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 ...

2 months ago | 1

| accepted

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

2 months 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...

2 months 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...

2 months 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.

2 months 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...

2 months 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 ...

2 months 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 ...

2 months 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...

2 months 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...

3 months 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...

3 months 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...

3 months ago | 0

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

3 months 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...

3 months 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 ...

3 months ago | 1

| accepted

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

3 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...

3 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...

3 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...

3 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...

3 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 ...

3 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.

3 months ago | 0

Answered
Is there a way to forbid using the "\" command in MATLAB Grader submissions?
There is no built-in way to prevent student solutions from using "\".

3 months ago | 1

| accepted

Answered
how to block reference files for teachers only?
Why do you want to upload a file? Why not just add your solution as the reference solution? Students will not be able to view th...

3 months ago | 2

| accepted

Answered
Standalone GUI application gives error at uigetfile. But if run from matlab, the script works fine
Looks like you have an incorrect function name. What is "I will" supposed to be? fprintf('== Came to the pushbuttonBrowse_Callb...

3 months ago | 0

Load more