Answered
Error using datetime/datenum
First problem is you are trying to convert your datetime to a datenum. I hightly recommend keeping it a datetime. What are you t...

5 years ago | 0

Answered
Creating Polar mesh in matlab
See this answer on how to do this using a rectangular matrix https://www.mathworks.com/matlabcentral/answers/438319-use-surf-to...

5 years ago | 0

Answered
export 3 D data
https://www.mathworks.com/matlabcentral/fileexchange/27982-wavefront-obj-toolbox https://www.mathworks.com/matlabcentral/answer...

5 years ago | 0

Answered
Color in Scatter function
There are two ways to specify the color - as the 4th input or with Name-Value pairs. To use the 4th input, follow this example ...

5 years ago | 0

| accepted

Answered
I'm having trouble drawing the trend
Clearly the two plots have very different x values. That sould be the first thing to explore. Did you mean to include an x input...

5 years ago | 0

Answered
Dividing a string into sub-strings using a for-loop
Why a for loop? I would use strsplit FilesID='data_190830_102602.mem,data_191030_141002.mem,data_191230_101612.mem'; prts = st...

5 years ago | 0

| accepted

Answered
Is it possible to include LaTeX expressions as text in my code?
It is possible if you use a live script. Live scripts are interactive documents that combine MATLAB code with formatted text, eq...

5 years ago | 1

| accepted

Answered
How to extract tick label in sequence data
What do you mean you want to extract them? Do you mean set them? Look at the xticks and xticklabels functions. x = linspace(0,...

5 years ago | 0

| accepted

Answered
Create 3D plot using Excel data
When you say you are a complete newbie, my first recommendation is to complete MATLAB Onramp. Your problem has 2 parts Importi...

5 years ago | 0

Answered
Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.
Remove the numbers before you commands. Check that your parentheses are lining up the way you intend. Your first plot command h...

5 years ago | 0

| accepted

Answered
Plotting Climate Division by Latitude and Longitude on Map
Specifying the axes in geoshow appears to work for me. ax = usamap('Nebraska'); nebraskahi = shaperead('usastatehi', 'UseGeoCo...

5 years ago | 0

| accepted

Answered
Error using plot Vectors must be the same length
Check what the lengths of t and C are. To plot them, they must be the same. The error would suggtest they are not. Perhaps you ...

5 years ago | 0

Answered
Index in position 1 is invalid. Array indices must be positive integers or logical values. (Slution of equation of motion with runge kutta 4)
It looks like you are trying to use y1_2nd as both a funtion and a variable name. It is created as the result of calling functi...

5 years ago | 0

Answered
The "Deep Network Quantizer" app is not working
Please be sure you have met all the listed prerequisites. If you have download or installation problems, please contact Technic...

5 years ago | 0

| accepted

Answered
Conditional statements on array.
This looks like a job for cummax, along with a logical array (ch 12 MATLAB Onramp). Input = [0,0,0,0,0,5,6,7,25,68,0,0,0,0,0,36...

5 years ago | 1

| accepted

Answered
what it does mean?
See MATLAB Onramp, in particular Chs 2, 5, 8, 12 & 13.

5 years ago | 2

Answered
contourf function mistake for mapping
It says the issue is with vector X, so the problem is in x./period-1 The result must be strictly increasing or decreasing, and ...

5 years ago | 0

| accepted

Answered
how to place an annotation one level deeper?
I'm not aware of a way to order the layers. I think my approach would probably be to add a black shape in the image under the an...

5 years ago | 0

| accepted

Answered
Matlab 2D Movie animation
We don't know what name is, but I assume a list of image files? You are not loading the image first. Load it to a variable, the...

5 years ago | 0

| accepted

Answered
How to know the name of the current learner in Grader?
Grader does not provide information to the MATLAB workspace about the current learner.

5 years ago | 0

Answered
APP DESIGNER ERROR: Index exceeds the number of array elements (14).
Follow the steps provided in this answer to determine the issue.

5 years ago | 0

Answered
matlab for app designer
It looks like you are sorting characters, not numbers. Did you mean to use str2double instead of num2str? You can't enter an arr...

5 years ago | 0

| accepted

Answered
import an excelsheet in matlab with timestamp an plot
There are a number of ways to import spreadsheets. You just need to pick one. I recommend readtable. If you import the times as...

5 years ago | 0

Answered
How to fix line that exceeds number of array elements(1)
The error is with avgCO2(i+1). The value at i+1 has not been defined yet, hence the error. You could try defining a value for a...

5 years ago | 1

| accepted

Answered
Appending 2 Tables with different column order and different number of columns
MATLAB can use variable names in a table to concatenate two tables even if the order is different. When all the variables are in...

5 years ago | 0

| accepted

Answered
Reassigning columns to a table
If you keep everything tables, you can use the VariableNames property to indicate which variables are being updated. MATLAB is a...

5 years ago | 0

| accepted

Answered
Mesh with griddata, how eliminate undesidered extra surface
You can set those points equal to NaN. z=peaks(25); z(12:18,:)=NaN; surf(z)

5 years ago | 1

Answered
Formation of another matrix from where I can Plot Data
I'd start with learning how to import a single file. This page will help you learn how to index your data. I'd also suggest com...

5 years ago | 0

Answered
How to plot data from a matrix using only a line?
You really have two options. Plot markers, or plot a line. You have lots of plotting options in MATLAB. See this page for the ba...

5 years ago | 0

Answered
please help me with this
You have not called TDMAsolver with all the inputs. Notice that it requires four inputs (a,b,c and d).

5 years ago | 0

| accepted

Load more