Answered
Allocating 500 matrices into one 3D array with a loop
Use S = load('your_mat_file'); To load your data into a structure S, Then loop over the fields of S. fields = fiel...

meer dan 6 jaar ago | 1

| accepted

Answered
How can I plot histogram ?
<https://www.mathworks.com/help/matlab/ref/histogram.html>

meer dan 6 jaar ago | 0

Answered
how can purchase MATLAB 2013a student suite for my application
Please contact MathWorks sales support <https://www.mathworks.com/company/aboutus/contact_us/contact_sales.html>

meer dan 6 jaar ago | 0

Answered
How can i draw a circle and how to draw arrow line?
<https://www.mathworks.com/help/matlab/ref/line.html> <https://www.mathworks.com/help/matlab/ref/quiver.html>

meer dan 6 jaar ago | 1

| accepted

Answered
Transistors and other active components absent from Simulink Library
Do you have a license for Simscape Electronics? Transistor blocks are part of the Simscape Electronics library, not the Simscape...

meer dan 6 jaar ago | 0

| accepted

Answered
Programmatically generating Simulink models from symbolic equations
# Convert the symbolic functions to MATLAB functions and generate .m files using the <https://www.mathworks.com/help/symbolic/ma...

meer dan 6 jaar ago | 1

| accepted

Answered
Is it possible to update the parameters of a Simscape block using the output of another block in Simulink?
So you want to change the breakaway friction torque during the simulation. I think the simplest way to do that is to create a cu...

meer dan 6 jaar ago | 0

Answered
can accelerometer detect the gravitational force on a body?
If you look at the documentation of the Accelerometer block, you find this: _For the default output type Voltage level, the a...

meer dan 6 jaar ago | 1

Answered
How to define a symbolic function that receives a vector?
You could use an anonymous function to call f x = sym('x', [3 1]) test = sym('test', [3 1]) f = symfun([x(1) 2 -x(1...

meer dan 6 jaar ago | 0

Answered
Install Arduino library to Matlab
You can install a new library as a <https://www.mathworks.com/help/supportpkg/arduinoio/custom-arduino-libraries.html Custom Add...

meer dan 6 jaar ago | 0

| accepted

Answered
from m-file to mex-file
There are limitation when using function handles with MATLAB coder. The documentation here should help you to fix the problem...

meer dan 6 jaar ago | 0

| accepted

Answered
solve Fourth Order Difference Equation:X(n+4)+X(n+3)-3*X(n+2)-5*X(n+1)+2*X(n)=0,with Initial conditions:X(0)=1,X(1)=0,X(2)=1,X(3)=2
Replace C=A\B; with C = double(A)\B; The symbolic toolbox does not return the expected solution because the mat...

meer dan 6 jaar ago | 0

Answered
How to solve dependent PDEs
<https://www.mathworks.com/help/matlab/math/partial-differential-equations.html>

meer dan 6 jaar ago | 0

Answered
what is the purpose of clear S when converting a struct2cell?
The purpose is to remove previous instances of s. This way you are sure to start from an empty struct.

meer dan 6 jaar ago | 0

Answered
How to input a physical signal with measured temperature, pressure and mass flow to a simscape model?
I assume that you are using the thermal liquid domain for your model. You can impose the temperature of the fluid using a Reserv...

meer dan 6 jaar ago | 0

Answered
How can i add nonlinear spring in my Simscape model
The nonlinear rotational spring is a Simscape Mechanical Rotational block, whereas the rest of your model uses Simscape Multibod...

meer dan 6 jaar ago | 0

| accepted

Answered
Converting from Matlab output to C++
Convert the symbolic function to a .m file using <https://www.mathworks.com/help/symbolic/matlabfunction.html matlabFunction()>....

meer dan 6 jaar ago | 0

Answered
Matching "From" for "Goto" 'untitled/Controlled Voltage Source/Goto' not found
If you just move up a little bit the resistor block in this model you will see it is not connected to the Capacitor block. This ...

meer dan 6 jaar ago | 0

Answered
solve larger than 3x3 matrix and error message
_how do I expand this for larger matrices._ use for loops _how to i write the code such that if the system is unsolvabl...

meer dan 6 jaar ago | 0

Answered
how to use the str2num for the whole array at once
How about this? A = {'1', '2', '3'} B = cellfun(@str2num, A)

meer dan 6 jaar ago | 4

Answered
getting errors while Copying imported model from solidworks into a new simulink model
The model needs a variable "smiData" which is missing. Look for the code that imports or creates this variable.

meer dan 6 jaar ago | 0

| accepted

Answered
How to interpolate a non-uniform 3D gridded data to an uniform 3D gridded data?
Create a uniform grid Xi, Yi, Zi, then use <https://www.mathworks.com/help/matlab/ref/griddata.html#inputarg_x griddata> to inte...

meer dan 6 jaar ago | 0

| accepted

Answered
How can I do this in MATLAB?
This is how you solve a non-stiff ODE <https://www.mathworks.com/help/matlab/math/solve-nonstiff-odes.html Solve Nonstiff ODE...

meer dan 6 jaar ago | 0

Answered
how to calculate rate of change of accelerator pedal position?
<https://www.mathworks.com/help/simulink/slref/derivative.html>

meer dan 6 jaar ago | 0

| accepted

Answered
k-means clustering using CUDA gpu with MATLAB programming
Here is the documentation about GPU computing in MATLAB <https://www.mathworks.com/help/distcomp/gpu-computing.html>

meer dan 6 jaar ago | 0

Answered
Error Using ode45, trying to call a function into ode45? please help
There is an error in duf = [... @yfunction-y(3) ... ] You are calling @yfunction without any argument. The correct synta...

meer dan 6 jaar ago | 0

Answered
Fitting Data to a Prescribed Equation
If I am correct, what you are trying to do is to fit a nonlinear model to a data set. The MATLAB command to do that is <https://...

meer dan 6 jaar ago | 0

Answered
Find the position of objects in two dimensions XY
The relevant toolboxes are the <https://www.mathworks.com/help/images/examples.html?s_cid=doc_ftr Image Processing Toolbox> and ...

meer dan 6 jaar ago | 0

Answered
Question on fmincon in formulating a constrained optimization
fmincon() seems to be the right choice. The constraints on the intermediate results can be specified as nonlinear constraints in...

meer dan 6 jaar ago | 0

| accepted

Load more