Answered
Adding specific elements in a vector
I would use groupsummary with defined bin edges of [1,3:21,25,38]. a = [1.0000 71.8700 2.0000 136.1100 3.0000 8...

4 years ago | 1

Answered
What is the solution to this error?
You are trying to use a function or variable in your code that has not been defined or is not accessible. Double check the conte...

4 years ago | 0

| accepted

Answered
I made a function and m-file to call that function but for some reason its giving me an error of "Undefined function or variable y" please help to fix my code
First, you need to define your function declaration to have an output variable. It looks like you want it to return y. function...

4 years ago | 0

| accepted

Answered
Trouble with datetime formatting
For 24 hr format, use 'HH' instead of 'hh' strTime = datetime('2015-12-22 00:00:00','Format', 'yyyy-MM-dd HH:mm:ss') To pefor...

4 years ago | 0

Answered
Unrecognized function or variable 'ode89'.
This function does not exist in R2021a. It was introduced in R2021b. You must update your version of MATLAB to use it.

4 years ago | 0

Answered
i want to make a function with three arguments that add subtract and multiply three numbers
I recommend learning how to do this by following the examples on the function documentation page.

4 years ago | 0

Answered
Contourfm does not display enough colors
One thing to be aware of is that colors that are below red correspond to spikes, or focused areas of large changes in Z. These d...

4 years ago | 1

| accepted

Answered
Plot data with date and time as the x axis
Read the table in as a table using readtable. You will want to make sure column 1 is read in as a datetime. This 'should' happen...

4 years ago | 0

| accepted

Answered
Index exceeds matrix dimensions.
the complete error is Error using indexing An invalid indexing request was made. Caused by: Index in position 1 excee...

4 years ago | 0

Answered
App Designer - Reading Value from Edit Field at Startup
Pay attention to data types. Your value of 1 is a char, not a double. You must be using a text edit field instead of a numeric e...

4 years ago | 0

| accepted

Answered
Can't find show() function
You are editing the show function, which is part of the Robotics System Toolbox, and not the class method. You would have to ope...

4 years ago | 0

Answered
what is the problem with the code?
There is ambiguity in one of your rows and, since the code is building an array, MATLAB is not doing what you intended. Specific...

4 years ago | 1

Answered
Plot with specific x value
Use xlim? x1= [1 2 3 4 5]; L = 2; n = linspace(0,4,10); m =linspace(0,10,10); h1 = dirac(n - m*L); idx = h1 == Inf; h1(id...

4 years ago | 0

| accepted

Answered
How to determine which points in an array are with a ring? Stupid question.
Use logical indexing. distances = sqrt(X_Position.^2 + Y_Position.^2); % create logical index to indicate points that meet con...

4 years ago | 1

| accepted

Answered
Simulink Coder for Home Users
You can see the list of available produccts for Home license users here. Simulink Coder is not included in the list, which sugge...

4 years ago | 0

Answered
How to find the maximum value from a matrix without using max syntax?
I suspect one issue to fix is that you use the same variable name for both loops. The variable can only hold one value at a time...

4 years ago | 0

Answered
I attended to a seminar today about MEE architecture, how can I get more information about it?
You might find the last page of the MATLAB Production Server Guide helpful (Resources section) Also, the MATLAB Production Serv...

4 years ago | 0

Answered
Change colormap in app designer using Spinner
Look into using caxis.

4 years ago | 1

Answered
Problem in extracting data from netcdf
You haven't shared your file or a link to the source, so here's my best guess. Based on what I see in the time attributes, the ...

4 years ago | 0

Answered
scatter plot different colors and markers based on different variables
I think you might find this example from the gscatter documentation page helpful. Here is how I might modify your code. data= r...

4 years ago | 0

| accepted

Answered
APP DESIGNER: How to convert value input by user into array and test it using trained neural network?
Why create a table just to turn it back into a matrix? Why not just concatenate the 3 variables? Since we know nothing about wha...

4 years ago | 0

| accepted

Answered
how to use the 'user defined' type in the window designer app?
The error you are seeing is specifically in relation to length. It is trying to use the length function, but it needs an input. ...

4 years ago | 0

| accepted

Answered
Extracting individual breathing cycles from a signal and plotting the mean cycle
extractsigroi is part of the Signal Processing Toolbox. It would appear you do not have it installed. If you have access to it t...

4 years ago | 0

Answered
LaTex for Titles in Appdesigner now possible?
The easiest way to set the interpreter to LaTeX for a title is to use the 'interpreter' name-value pair. title(app.UIAxes,'titl...

4 years ago | 2

| accepted

Answered
Simpsons 1/3 Rule to solve integration
As the error states, the input to inline must be a character vector (e.g. f = inline('sin(alpha*x)')) Note that inline is not r...

4 years ago | 0

Answered
I Want To Plot 30 Names On Y-Axis And Their Data on X-Axis
One option is to use a stackedplot. It will only show what can fit on the screen, though, so you do have to expand the figure to...

4 years ago | 0

Answered
I am trying to use a button to open another app window but an error keeps popping up
See this page on creating multiwindow apps in App Designer.

4 years ago | 0

Answered
ekstra lines in plot
It appears your time restarts every 20000 rows. The horizontal lines, then are when the time jumps from ~10 back to ~0. You cou...

4 years ago | 1

| accepted

Answered
How do I specify a specific time e.g. 7:30a.m.
Look into app designer, datetimes, and logical conditions.

4 years ago | 0

Answered
merge two datetime arrays into one datetime arrays
Before you merge, you need to know that all datetime arrays have a date and time associated with them, even if that information ...

4 years ago | 0

| accepted

Load more