Answered
Help plotting two events that happened on the same day
I'm not sure what it is you want to display on your final figure. First, for others, here's the data in a way you can quickly c...

7 years ago | 0

| accepted

Answered
How to set a colorbar using specific RGB values and limit values?
If you want specific colors at specific values, specify the contour lines. Then you can set the colormap and Caxis limits to for...

7 years ago | 0

| accepted

Answered
How to export the third dimension of a 3D single array?
So your variable has 3 dimensions? If you ran the command size(A), you should get three numbers, something like m x n x z. If t...

7 years ago | 0

| accepted

Answered
Reading an excel file and taking certain parts of the data
I'd suggest you try to use readtable instead of xlsread.

7 years ago | 0

Answered
Program that takes input from excel file and calculate distance and msd for each point!
I'd recommend you start by learning the fundamentals of MATLAB. For this, I'd suggest completing MATLAB Onramp. It's an interact...

7 years ago | 0

Answered
Boxplot for multiple categorical data sets
You could use the 'BoxStyle','filled' name,value pair when creating the boxplot. I don't like how that looks. The best I could f...

7 years ago | 0

| accepted

Answered
Why Does My Code Work for Fprintf, but not disp() for outputting a result from the user input
Concatenation with + only works for strings ("string"), not character arrays ('character array'). Replace your single quotes wi...

7 years ago | 0

Answered
Boxplot for multiple categorical data sets
Not sure what you are hoping it looks like in the end, but here's one way. load features.mat data1 = features{1}; data2 = f...

7 years ago | 0

Answered
How do you convert wav file to mp3
See this post. If you can't find something in the file exchage, there are numerouse websites and 3rd party tools that also do t...

7 years ago | 0

Answered
Question regarding data grid
The uploaded file contains a single variable with size 1x71x38. If that is correct, just use the squeeze function to remove the ...

7 years ago | 0

Answered
The number of lines on ASCII file should be same - error
What are you trying to do? You can read more about save in the doc. There are also examples there to help you get started. If...

7 years ago | 0

| accepted

Answered
Traverse a nested for loop with strings as one index and int as another.
When working with strings, the "+" is used for concatenation. Your result, then, is strings, not variables. It depends what you...

7 years ago | 0

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

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

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

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

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

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

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

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

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

7 years ago | 1

| accepted

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

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

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

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

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

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

7 years ago | 2

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

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

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

7 years ago | 0

Load more