Beantwortet
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...

mehr als 6 Jahre vor | 1

| akzeptiert

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

mehr als 6 Jahre vor | 0

Beantwortet
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>

mehr als 6 Jahre vor | 0

Beantwortet
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>

mehr als 6 Jahre vor | 1

| akzeptiert

Beantwortet
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...

mehr als 6 Jahre vor | 0

| akzeptiert

Beantwortet
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...

mehr als 6 Jahre vor | 1

| akzeptiert

Beantwortet
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...

mehr als 6 Jahre vor | 0

Beantwortet
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...

mehr als 6 Jahre vor | 1

Beantwortet
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...

mehr als 6 Jahre vor | 0

Beantwortet
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...

mehr als 6 Jahre vor | 0

| akzeptiert

Beantwortet
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...

mehr als 6 Jahre vor | 0

| akzeptiert

Beantwortet
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...

mehr als 6 Jahre vor | 0

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

mehr als 6 Jahre vor | 0

Beantwortet
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.

mehr als 6 Jahre vor | 0

Beantwortet
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...

mehr als 6 Jahre vor | 0

Beantwortet
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...

mehr als 6 Jahre vor | 0

| akzeptiert

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

mehr als 6 Jahre vor | 0

Beantwortet
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 ...

mehr als 6 Jahre vor | 0

Beantwortet
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...

mehr als 6 Jahre vor | 0

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

mehr als 6 Jahre vor | 4

Beantwortet
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.

mehr als 6 Jahre vor | 0

| akzeptiert

Beantwortet
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...

mehr als 6 Jahre vor | 0

| akzeptiert

Beantwortet
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...

mehr als 6 Jahre vor | 0

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

mehr als 6 Jahre vor | 0

| akzeptiert

Beantwortet
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>

mehr als 6 Jahre vor | 0

Beantwortet
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...

mehr als 6 Jahre vor | 0

Beantwortet
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://...

mehr als 6 Jahre vor | 0

Beantwortet
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 ...

mehr als 6 Jahre vor | 0

Beantwortet
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...

mehr als 6 Jahre vor | 0

| akzeptiert

Mehr laden