Answered
Plotting multiple Box plots on a single figure for multiple conditions
This can be achieved using the hold on command along with the polyshape function in MATLAB. Suppose the vertices for task 1 are ...

2 years ago | 0

Answered
exporting data from bulk analysis (function/script in a loop)
If the format of the data to be exported is a table then writetable can be used. For guidance on how to use the function, refer ...

2 years ago | 0

Answered
How do I graph and calculate the volume between two surfaces?
The issue is to locate the boundary. Once you have it, it's easy: here is an example continuing your code assuming that the boun...

2 years ago | 0

Answered
Three implicit terms in function
The Symbolic toolbox can be used to solve for such questions. Refer to the following documentation of Symbolic toolbox, it might...

2 years ago | 0

Answered
How to choose the right model for Non-linear regression?
The Curve fitting toolbox can be used for this purpose. The documentation for the toolbox can be accessed by clicking here. Alt...

2 years ago | 0

Answered
MATLAB support for additional graph distance metrics/norms?
There is no specific function in MATLAB to incorporate various distance metrics while calculating shortest paths between two no...

2 years ago | 0

| accepted

Answered
Confidence intervals for the coherence and phase calculated by CPSD
There is no argument specifically for Confidence level in CSPD. Instead confidence level can be calculated with the help of perc...

2 years ago | 0

Answered
Audiorecorder not able to take input.
In order to communicate with the audio hardware on a given computer, Simulink uses the open source PortAudio library. The PortAu...

2 years ago | 0

Answered
What are the network requirements for Online Licensing?
Contact your sales representative to get detailed understanding about your license terms. If you don't know who your sales repre...

2 years ago | 0

Answered
How do I change the size of subplots in stackedplot
MATLAB has hold on feature which allows to plot multiple graphs on the same figure. Refer to the following link to know more abo...

2 years ago | 0

Answered
double forloop and plotting
The problem is here that you are overwriting values when you use [t,x] = ode45(dxdt, tspan, x1); As this line is outside of...

2 years ago | 0

| accepted

Answered
Simple question about symbolic limits
The limit specified is also dependent on c if c does not have small values. For small values of c, a simplified expression is yi...

2 years ago | 0

Answered
How to import a neural network from Matlab into fortran
There is no inherent functionality in the MATLAB for this but a quick google search yielded results for FORTRAN converters on Gi...

2 years ago | 0

Answered
Error while simulating a model containing PV array
Refer to the following link for the various steps that can be followed in order to resolve algebraic loops in Simulink model: ...

2 years ago | 1

Answered
Heat Dissipation from an Annular Fin
This equation can be simplified by fixing the known values and the relation between Re and Rb, Refer to the code below: x = [0...

2 years ago | 0

Answered
find peaks in power spectral density
Try following this approach, it returns the out array with frequency count of each peak: [pks,locs] = findpeaks(y1); un = ...

2 years ago | 0

Answered
Is there a way to run CCSv6 code as a Simulink block?
The s-functions can be leveraged for this. Refer to the following documentation of s-function, it might help https://www.ma...

2 years ago | 0

Answered
Plotting chemical 2d reaction in different colors
This problem can be tackled using the following approach. Suppose contour1.jpg is the first contour and cntour2.jpg is the secon...

2 years ago | 0

Answered
Interplolation of two different data set in a same grid interface
The hold on piece of code can be used for the interpolation of two different datasets in a same grid interface, for example: S...

2 years ago | 0

Answered
How to edit C++ code of a Simulink block?
There is no need to edit the code of the Simulink block. The ODE Solver can be changed in the Simulink model by going to the Con...

2 years ago | 0

Answered
Moving window with two conditions - Matlab
Try following this approach, it returns the regions in the moving window in between the defined thresholds: % Define sample da...

2 years ago | 0

Answered
1D diffusion equation with different dx and dt
The table function gives error because the u matrix is not created properly and in line u(j)=u(j)+dudt(j)*dt;%eulers method t...

2 years ago | 0

Answered
Forward difference and central difference help - expected rates of convergence
Try using with this code for section 2 x=[-10:0.01:20]; dt = 0.00001; values_y = [-10:0.01:20]; y1 = [-10:0.01:20]; va...

2 years ago | 0

Answered
Resample the output file of a simulation
The following procedure might help you, where X is the second column of the matrix which needs to be binned: bins = [start_pos...

2 years ago | 0

Answered
Use point data to plot a signal to use in Simulink
The following procedure might help you: In the MATLAB command prompt run your script and then open Simulink. Create a blank...

2 years ago | 0

Answered
using c++ in mATLAB
Try using with this code for section 2 g = 9.81; r = 0.7; theta = (0:0.04:pi); speed = sqrt(g/r); speeds = [0,0,0,0...

2 years ago | 0

Answered
Is there a way for me to access the files I saved on MATLAB online after my trial has expired?
The files can be accessed by going to drive.matlab.com and the files can be downloaded on the local machine. The m-files can be...

2 years ago | 4

Answered
Plotting truncated FS expansion
The following code is implemented with the assumption of C and L to be 1 as they are constants and it works fine and plots the g...

2 years ago | 0

Answered
Remove point from voronoiDiagram
I have brought this issue to the notice of our developers. They will investigate the matter further.

2 years ago | 0

| accepted