Answered
extracting data using indexing
See Ch 5 of MATLAB Onramp

4 years ago | 0

Answered
Why doesn't Matlab recognize my data format?
The error is because 2018 was not a leap year. 2016 and 2020 were. d1 = '29/02/2016'; datetime(d1) % The error you see d2 = ...

4 years ago | 0

Answered
how do I display the labelling on the axis?
The issue is caused by the code that adjusts the axes position. Comment that out, and your axes labels appear. % CGLsim1D.m %...

4 years ago | 0

| accepted

Answered
how to use fprintf in app designer?
fprintf will print to the command window, even if called in App Designer. There is not a 'print output' option in app designer. ...

4 years ago | 0

| accepted

Answered
how to use external function in app designer?
See this answer: https://www.mathworks.com/matlabcentral/answers/398322-calling-external-functions-in-app-designer

4 years ago | 0

Answered
Why my fft graph gives different output on again running the code?
I suspect the reason it changes is because you are adding randon noise to your signal with awgn. Since that changes every time t...

4 years ago | 0

| accepted

Answered
I need to break down the flow data into groups of data with months for every year.
Look into groupsummary, specifically the groupbin option 'monthofyear'.

4 years ago | 1

| accepted

Answered
convert char array to string
The function fileparts creates output with the same data type as the input. % String input = string output fileS = "H:/user4/...

4 years ago | 0

| accepted

Answered
Live Script not loading - empty editor window
I would recommend contacting support to report this. They will be better positioned to help investigate this.

4 years ago | 1

| accepted

Answered
How can I plot my reflectance data according the "day of year"?
Use the following syntax: gscatter(x,y,g,clr,sym,siz) You cannot skip an input, so if you want to use the default color and sy...

4 years ago | 0

Answered
How can I plot my reflectance data according the "day of year"?
Here's a first attempt. I will create a datetime vector of evenly spaced time values from 1/1/2013 - 12/31/2022. From there, I c...

4 years ago | 0

| accepted

Answered
it says error using assert, assertion failed and error in iuntitled (line 10) assert(ischar(in))
That is what an assert does. If the assertion fails (here that means that in is not a char), then an error is thrown and the mes...

4 years ago | 0

Answered
[MATLAB Grader] How to test if a matrix compares.
The code you have provided will compare the values in the student's variable A against the reference solution variable A. Values...

4 years ago | 0

| accepted

Answered
MATRIX ARRANGEMENT PROBLEM MATLAB
Not that your loop counter is j, but your indexing uses j+1, and then again use loop counter aa, but index using aa+1. Therefore...

4 years ago | 0

Answered
Why I cannot see any result on my graph
By default, MATLAB plots using a solid line style with no marker. When you plot a single point like your code is doing, this res...

4 years ago | 1

Answered
Index exceeds the number of array elements (0)
The error means you are trying to index an empty array. a = []; a(1) It looks like the line causing the error is from ChomboO...

4 years ago | 1

Answered
A problem with K-means Clustering
Perhaps you could describe what you think your code is doing? One thing to be aware of - outputs are determined by position, no...

4 years ago | 0

| accepted

Answered
how to enable label in x and y axis of this graph
Personally, I would do it programmatically. However, you can also use the Insert menu.

4 years ago | 0

Answered
Problem with using addvars
I would do it this way z7AsensorDataList(ind1).dynamicSensorData.SensitivityThold.sensitivity_thold_190 = z7AsensorDataList(ind...

4 years ago | 1

| accepted

Answered
I want to send data from Matlab to Arduino
Consider looking through the arduino examples: https://www.mathworks.com/help/supportpkg/arduinoio/examples.html

4 years ago | 0

Answered
plotting coordinates on a simple map
The geoplot function was introduced in R2018b (see here). You will need to update your version to at least that version to be ab...

4 years ago | 0

| accepted

Answered
How can I interpolate data obtained from two different time intervals?
I would convert the data to timetables and then use the synchronize function to combine the two tables to a common time vector. ...

4 years ago | 0

Answered
Error using input Unrecognized function or variable 'x'. Error in untitled (line 2) f1=input('fonksiyonu giriniz: ')
It may be in part how you are formatting your input equation, but the main problem is that there is no 'lnx' function in MATLAB....

4 years ago | 1

Answered
i cant access my onramp courses. As soon as i sign in it automatically signs me out
Some option to try on your own include try a different browser clear you cache and cookies restart your computer If you cont...

4 years ago | 0

Answered
my student license has expired
See if you have access through a school license. You can check here. If not, look into if you are eligible to renew your licens...

4 years ago | 0

Answered
I need Simulink and MATLAB free for just two days
You may hae access already through your school. See here

4 years ago | 0

Answered
How can I plot lat lon and z-data with changing colors?
A couple of the mapping plotting functions come to mind. Your Z value is used to determine the color. plot3m scatterm geoplot...

4 years ago | 0

| accepted

Answered
How can I assess Symbolic Units and use assessVariableEqual to admit tolerances in MATLAB Grader simultaneously ?
I believe this answer is related: https://www.mathworks.com/matlabcentral/answers/512436-grader-says-answer-verified-in-referen...

4 years ago | 1

Answered
How to delete content of table data from gui ?
All the data returns because you likely have not cleared your variable p.MyData. You code for collecting values appends the new ...

4 years ago | 0

| accepted

Answered
Index exceeds the number of array elements. Index must not exceed 1.
See the full error message: Index exceeds the number of array elements. Index must not exceed 1. Error in LE_RF_p1 (line 4) X...

4 years ago | 0

Load more