已回答
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...

7 years 前 | 1

| 已接受

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

7 years 前 | 0

已回答
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>

7 years 前 | 0

已回答
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>

7 years 前 | 1

| 已接受

已回答
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...

7 years 前 | 0

| 已接受

已回答
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...

7 years 前 | 1

| 已接受

已回答
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...

7 years 前 | 0

已回答
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...

7 years 前 | 1

已回答
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...

7 years 前 | 0

已回答
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...

7 years 前 | 0

| 已接受

已回答
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...

7 years 前 | 0

| 已接受

已回答
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...

7 years 前 | 0

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

7 years 前 | 0

已回答
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.

7 years 前 | 0

已回答
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...

7 years 前 | 0

已回答
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...

7 years 前 | 0

| 已接受

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

7 years 前 | 0

已回答
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 ...

7 years 前 | 0

已回答
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...

7 years 前 | 0

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

7 years 前 | 4

已回答
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.

7 years 前 | 0

| 已接受

已回答
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...

7 years 前 | 0

| 已接受

已回答
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...

7 years 前 | 0

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

7 years 前 | 0

| 已接受

已回答
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>

7 years 前 | 0

已回答
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...

7 years 前 | 0

已回答
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://...

7 years 前 | 0

已回答
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 ...

7 years 前 | 0

已回答
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...

7 years 前 | 0

| 已接受

加载更多