Answered
How to plot 3D vectors on a 2D plot?
The solution likely varies depending on your data, but I would probably first look into using imagesc: imagesc(x,y,C) This way...

4 years ago | 1

| accepted

Answered
Appdesigner 'Value' must be double scalar
The Value property can only be a single numeric value (that's what is meant by 'double scalar'). It is likely the result of csvr...

4 years ago | 0

| accepted

Answered
Edit field numeric appdesigner
I would use the Label component to add the '*X' to the right of the edit field.

4 years ago | 0

| accepted

Answered
What's the difference?
In b), you rerun the code you developed for a) for each student in your list. Typically this would be done by placing the code f...

4 years ago | 0

Answered
How to fix unallignment of box plot in subplot when using sgtitle?
Interestingly, if I run your code in a live script, it initially renders incorrectly, but then corrects itself. If I run your co...

4 years ago | 1

| accepted

Answered
How to recover .m file lost due to the abnormal termination
See this page: https://www.mathworks.com/help/matlab/matlab_env/recovering-data-after-an-abnormal-termination.html

4 years ago | 0

Answered
Can "datetime" be responsible for the misalignment of data in a plot ?
I think the allignment difference is due to what MATLAB is setting your axis limits to when the x values are datetimes (Jun 17 -...

4 years ago | 1

Answered
Live script, convert to local function
It is bad practice - and completely unnecessary - to create a function where the first command is clear. Remove this line of cod...

4 years ago | 0

| accepted

Answered
Chirp plot is not drawing
You need to place hold on before you add a second plot to your axes. Your code currently replaces the plot with the stem plot. ...

4 years ago | 0

Answered
How do I get MATLAB to read a long number as a date and time?
Convert your numbers to strings, and then use datetime to convert it to a time. % original data t = [11142021092415; 724202009...

4 years ago | 0

Answered
Combine two matrices according to datetime in first column
You are going to have a challenge here because the tolerance indicated in your example (~1 minute) is much larger than the small...

4 years ago | 0

| accepted

Answered
Get datenum to return missing instead of throwing an error
I would start by looking into the standardizemissing function.

4 years ago | 0

| accepted

Answered
Input mesh does not form a closed volume error; checked that mesh is watertight
I wouldn't say I can suggest a more elegant workflow, but here is one that I have found to work in the past. It involves using s...

4 years ago | 0

Answered
MATLAB Online does not run script properly
Code runs without error for me. I can also run it here without error. Perhaps try again? If it happens again, perhaps there are ...

4 years ago | 0

Answered
How do i delete a repeating row
Modified from this example [C,ia] = unique(grades{:, 1}); B = grades(ia,:) See this page for alternate ways to access data in...

4 years ago | 0

| accepted

Answered
Plotting data from text file , subplot
See the examples in the following documentation pages readmatrix subplot plot

4 years ago | 0

| accepted

Answered
Help with code, writematrix not working. Please help fix
Your first input to writematrix needs to be a variable name, not a char. Change this: writematrix('Departure City:','table1.xl...

4 years ago | 0

Answered
Operands to the || and && operators must be convertible to logical scalar values.
Use || and && when you are comparing a single (scalar) value. Use | and & when you are comparing arrays (when there is more than...

4 years ago | 0

Answered
Passing Data between two Apps
See this support page https://www.mathworks.com/help/matlab/creating_guis/creating-multiwindow-apps-in-app-designer.html and t...

4 years ago | 0

| accepted

Answered
how can I open a matlab app that I designed in AppDesigner inside another app that I'm creating (always in AppDesigner)?
See the Create Multiwindow Apps in App Designer page

4 years ago | 1

| accepted

Answered
How to conditionally and by groups subtract one row from another in table?
I think I would calculate the results to a new table using groupsummary, then concatenate the tables. This is a little longer th...

4 years ago | 1

Answered
Extract data from sequentially named tables
Converting your tables to stuct or cells to me seems like taking a step backward. Why not just concatenate all the tables togeth...

4 years ago | 1

Answered
How to automatically get the axis of a figure in Live Editor?
You can get the axes object in a figure the same way you would outside of a live script. Option 1: capture the axes object by c...

4 years ago | 0

| accepted

Answered
I keep receiving an error when I try to run this code for a 3DOF mass-spring system "Index in position 1 exceeds array bounds. Index must not exceed 1".I am confused as to why
The problem is that zeta is a scalar, not a vector. The fix is to not index this variable. n=3; %degree of freedom m1= 45400; ...

4 years ago | 0

| accepted

Answered
Can matlab grader questions be vulnerable by hackers through pretest?
If the pretest assessment is a MATLAB Code test type, then learners can expand the test to see the underlying assessment test co...

4 years ago | 0

| accepted

Answered
Create a GUI interface in MATLAB for simple image functions like reading and displaying??
Take a look at this example app.

4 years ago | 1

| accepted

Answered
Help calculating values from a table into a loop
I would do this (untested) sumTbl = groupsummary(T,["timepoint","bird","day"],'sum',"value1") The result will be a table ident...

4 years ago | 1

| accepted

Answered
How to save/export MATLAB Grader contents?
There are a few options. The simplest is probably to create the new MathWorks account first. Then log into MATLAB Grader using ...

4 years ago | 0

Answered
Can someone provide a previous version of this Heat Pump example model?
It looks to me like this example was introduced in R2022a. You can open previous versions of the doc by adding the release to t...

4 years ago | 0

Answered
Plotting in a specific axes in GUIDE
You must use the following syntax when plotting in an app/gui: plot(ax,___) This tells MATLAB which axes to plot into. Without...

4 years ago | 0

Load more