Answered
How to add percent change in barplot?
You can add a line plot to a bar plot. Just use the hold on command. If you need it to be on a separate Y scale, look at this e...

5 years ago | 1

Answered
3d plot from scalar values- how to
How do you have a scalar array? Scalars are by definition 1x1. Surf/mesh requires the Z input be a matrix, so somehow you will ...

5 years ago | 0

Answered
Vectors must be the same length.
I suspect the issue is with your opening line. It is currently clearing a variable named clc. I suspect your intent is to clear ...

5 years ago | 0

| accepted

Answered
how to do linear line in GUI
You would do it the same way you would in MATLAB. If you have the curve fitting toolbox, use the function fit with the fitType ...

5 years ago | 1

Answered
How can I export a waveform plot to .csv or .wfm?
Does it need to be is any particular format for LabView to use it? If not, there are many ways you can save it. You might consi...

5 years ago | 0

Answered
file reading problem with switch
My suggestion is to use fileparts rather than trying to come up with your own way to extract the file extension. If you want to...

5 years ago | 0

Answered
Matrix addition hour values to day values
If I were going to do this, I would create a vector of datetimes incremented by 1 hour. I would then create a table with the dat...

5 years ago | 1

| accepted

Answered
MATLAB event function for ODE, specifying time span, and obtaining solution
If you specify a vecor of times for your tspan instead of start and end time, MATLAB will still solve the ode the same, but will...

5 years ago | 1

| accepted

Answered
making mancalla in a matlab gui
handles.p1p1 does not exist.

5 years ago | 0

Answered
Plot a 3D matrix (1 dependent & 2 independent variables)
You could use mesh or surf. As an example, consider X and Y verctors, with Z defined as sin(X) + cos(Y). X = linspace(0,2*pi,20...

5 years ago | 0

| accepted

Answered
ode45 concentration problem
First big error I see is that, assuming your A and h are in meters, you have not correctly converted your to . . You have divid...

5 years ago | 0

| accepted

Answered
Unable to concatenate the table variables 'Var1' and 'Var2', because their types are double and cell.
You are trying to extract all the data to an array. In an array, all the data must be of the same type. The error is because you...

5 years ago | 3

Answered
Error using trainNetwork (line 170)
It would appear you have images and pixel labeled images in your image datastore datasource. These images do not have the same s...

5 years ago | 0

Answered
Query related to Cody
There are some users who have not so much created a solution, but have instead hacked the grader to create the "best" solution. ...

5 years ago | 0

| accepted

Answered
error Conversion to logical from sym is not possible.
The issue is with this line of code if r>=1 Your variable r is a symbolic expression made up of symbolic variables. Therefore,...

5 years ago | 0

Answered
design of journal bearing
I suggest having a look at this answer.

5 years ago | 0

| accepted

Answered
Question about ploting a complicated summation function
Your summation function is returning complex values for E. Should they be complex? If so, do you want to plot the real, imaginar...

5 years ago | 0

Answered
What happens to this programe of Runge-Kutta Method?
Welcome to numerical integration! Nothing is wrong with your code. Your step size is too large for your system. Make it smaller,...

5 years ago | 0

| accepted

Answered
Write a function called mixit
Your example may be too simple. If you step through the logic of your code, you will see why, in this simplified scenario, you...

5 years ago | 0

Answered
Utilize variable from different function
Function each have their own workspace. The proper way to return a variable from a function is through the function output varia...

5 years ago | 0

Answered
How can i install computer vision toolbox?
If it is included on your license, you can install it from within MATLAB using the Add-Ons explorer.

5 years ago | 0

Answered
Add line to scatter plot markers
MATLAB will treat each column of data as a different series. You could reshape X,Y and Z so that the rows represent the hours of...

5 years ago | 1

Answered
Hourly 3d plot for rainfall with distinct line color for all 12 months
MATLAB will treat each column of data as a different series. As a quick and dirty approach, you could reshape X,Y and Z so that ...

5 years ago | 1

| accepted

Answered
how to change the system of ODEs (using event functions) when one of the solutions reaches certain value?
I found this example on modeling a bouncing ball very helpful when I was trying to use ODE event.

5 years ago | 1

Answered
Find points are located at a radial distance of 20m from a point
Generate the points that make up the circle around myPoint, then use the inpolygon function to identify the points that are with...

5 years ago | 0

Answered
How to add progress bar to a code which has different process times according to data
Use a waitbar. You would update the progress at certain stages along the way, allowing the progress to accurately reflect the pr...

5 years ago | 0

Answered
How can I write subplot function involving if statements
This seems to be more of an assignment about indexing. See the array indexing documentation page.

5 years ago | 0

Answered
how i can solve the infinit loop
You get an infinite loop when the criteria for your while loop is always true. Here, I suspect the issue is that you never chang...

5 years ago | 0

| accepted

Answered
finding and replacing problematic cells in a table
Look into the standardizemissing,fillmissing, ismissing,and rmmissing functions

5 years ago | 0

Answered
Why cant I run in app designer?
This error has more to do with where you are trying to define a function. It would appear that this callback is not being define...

5 years ago | 0

Load more