Answered
Error: File: Lab1.m Line: 81 Column: 1 Function definitions in a script must appear at the end of the file. Move all statements after the "f" function definition to before the first local function definition.
What you have shared looks good, but you have not shared your full file (we do not see 81 lines, nor do we see a function f). As...

6 years ago | 0

Answered
How to convert 64 bit integer timestamp to yyyymmddHHMMSSffffff format?
My best guess would be to use datetime and set the 'Epoch' and 'TicksPerSecond' name-value pairs. Perhaps something like this? ...

6 years ago | 1

| accepted

Answered
How to Use imported Workspace Data in MATLAB script
You need to refer to them using their variable name. This is the name used in the Workspace. It was set (intentionally or not) w...

6 years ago | 0

| accepted

Answered
How to create a correct barplot from table?
You probably need to impose an order on your categorical data. Otherwise, it is automatically arranged in alpha-numeric order. U...

6 years ago | 0

| accepted

Answered
Matlab Grader: Feedback for common errors
The current (R2020a) way to achieve this in MATLAB Grader is to use a MATLAB Code assessment type and logical statements to perf...

6 years ago | 1

| accepted

Answered
problem will installation of software
See this post on performing a clean install.

6 years ago | 0

Answered
3D Graphic from 40 files
Here's one way. Since we didn't have your data, I made my own. You will have to do some adapting to get it to work with your var...

6 years ago | 0

| accepted

Answered
Missing functions in live editor
What version of MATLAB are you using? These were introduced starting in R2018a.

6 years ago | 0

| accepted

Answered
Bar3 plot increase bar thickness
If you read Mike's blog post (where your desired image comes from), you'll notice he wrote his own function for creating a 3D st...

6 years ago | 0

Answered
assignment problem caused by size misfit between two sides
Which line is causing the error? There must be some code missing from what you've shared here. You get this error when your as...

6 years ago | 1

| accepted

Answered
Drawing polygon on axes GUI, Finding the area of a polygon
It's not clear if you are using app designer or guide. It should be simple enough to try. If you have trouble, share your code s...

6 years ago | 1

| accepted

Answered
Boxplot with logarithmic y-axis
The tick values must correspond to the plotted data. The tick labels can be whatever you want. You can change the scale of your...

6 years ago | 1

| accepted

Answered
Import range of files based on file name
Acknowledging there are a lot of ways to do this, here's how I thought to do it. It borrows from the code you've shared. % Sele...

6 years ago | 0

| accepted

Answered
Creating 3D Scenario from Aerial Image (Mathworks Road Runner)
Have you seen the documentation on the Aerial Imagery Tool?

6 years ago | 0

Answered
Apply formula to a set array of each group
It looks like you are using a table. If so, every variable in the table has the same number of rows. It looks like your table ha...

6 years ago | 0

Answered
Displaying a value on top of bar chart
I'd add the following code at the bottom of your for loop text(i,sum(y)+15,string(E(i)));

6 years ago | 0

| accepted

Answered
How to extract coordinate from the header files?
Think of fid as a pointer that tells textscan where to read from. It moves its way byte by byte through the file until it reache...

6 years ago | 1

| accepted

Answered
Plotting on Smith chart
I would probably create the smithplot this way. data = readtable('1kHz.xlsx'); Z0 = 50; Zl=data.Rohm + 1i*data.Xohm; gamma =...

6 years ago | 0

Answered
Can divide by zero or infinity during the calculation be taken as zero?
You could use the isinf function. S1(isinf(S1)) = 0;

6 years ago | 0

| accepted

Answered
Minimum width across any part of a connected component in matlab
Here's a quick and simple way to do it for c = 0:max(A,[],'all') tmp = sum(A==c,2); if any(tmp==1) A(A==c)=m...

6 years ago | 1

| accepted

Answered
ans representation in decimal
FYI the code you shared generates the following error Unable to resolve the name u.kg. Add the following to fix that: u = sym...

6 years ago | 0

| accepted

Answered
how to produce sine wave with exactly same values for turning Points (Peaks and Valleys) ?
You need to set your input to sine such that the points of tt land exactly at the peaks and valleys. That means having your spac...

6 years ago | 0

Answered
How can I interpolate the two data in the timetable? (Interpolate Data with 0 value, not data of Nan value)
Perhaps use interp2? indRef = ~ismissing(comb.Latitude) & comb.Distance > 0; indPred = ~ismissing(comb.Latitude) & comb.Distan...

6 years ago | 0

Answered
Installed MATLAB ask activation key how to solve this problem?
It looks like you need an activation key. You might just need an internet connection to activate. Make sure you are connected to...

6 years ago | 0

Answered
How to match last point of the previous coordinate with the next point of the next coordinate?
There likely isn't an existing function in MATLAB for this. This sounds very custom to me. That's ok, though. MATLAB gives you t...

6 years ago | 0

| accepted

Answered
Hot to plot maximum y value for group by each x
It looks like your data is in a table. If so, use groupsummary to create the data to plot. maxTbl = groupsummary(dataTbl,"Alumn...

6 years ago | 0

Answered
Unable to open .xlsx file after convertion from .csv
Not knowing exactly the goal, here's how I might read in multiple csv files into a table in MATLAB without creating intermediate...

6 years ago | 0

| accepted

Answered
Unable to open .xlsx file after convertion from .csv
I think the issue might be because you have the spreadsheet open in Excel at the same time. Try closing it and then seeing if yo...

6 years ago | 0

Answered
Error when trying to access timetable properties (Matrix index is out of range for deletion.)
Something is not working correctly on your computer. Try restarting MATLAB. If it still happens, try restarting your computer. ...

6 years ago | 0

| accepted

Answered
How to plot two independent variables and one dependent variable in a graph?
If you have 3 variables, you likely need a 3D plot. I would try plot3 or scatter3. As for fitting the data, try the options pro...

6 years ago | 0

Load more