Answered

channel flow of multiple gases (look for toolbox)

<https://www.mathworks.com/help/physmod/simscape/physical-modeling.html>

channel flow of multiple gases (look for toolbox)

<https://www.mathworks.com/help/physmod/simscape/physical-modeling.html>

casi 4 años ago | 0

Answered

2d function in 3d

<https://www.mathworks.com/help/matlab/2-and-3d-plots.html>

2d function in 3d

<https://www.mathworks.com/help/matlab/2-and-3d-plots.html>

casi 4 años ago | 0

Answered

Measure simulink step time

Use the <https://www.mathworks.com/help/simulink/ug/examine-solver-behavior-using-solver-profiler.html Solver Profiler>.

Measure simulink step time

Use the <https://www.mathworks.com/help/simulink/ug/examine-solver-behavior-using-solver-profiler.html Solver Profiler>.

casi 4 años ago | 2

Answered

MATLAB 2017b Download question

You can display the help by manually typing help comm

MATLAB 2017b Download question

You can display the help by manually typing help comm

casi 4 años ago | 0

Answered

getfield() error when calling on multiple fields: "Struct contents reference from a non-struct array object"

Which version of MATLAB are you using? The documentation says that getfield() can access nested fields, not that you can retriev...

getfield() error when calling on multiple fields: "Struct contents reference from a non-struct array object"

Which version of MATLAB are you using? The documentation says that getfield() can access nested fields, not that you can retriev...

casi 4 años ago | 1

| accepted

Answered

fmincon should return a scalar value error

fmincon() crashed because it expected the objective function to return a scalar value but got something that was not a scalar. ...

fmincon should return a scalar value error

fmincon() crashed because it expected the objective function to return a scalar value but got something that was not a scalar. ...

casi 4 años ago | 3

| accepted

Answered

I can't Aerospace Blockset

For installation problems, contact the install support team <support@mathworks.com> . Do you have a license for the Aerospace...

I can't Aerospace Blockset

For installation problems, contact the install support team <support@mathworks.com> . Do you have a license for the Aerospace...

casi 4 años ago | 0

Answered

How can I expand a complex number in Real + i*Imaginary parts using symbolic variables?

Not sure if it is what you are trying to do, but you can extract the real and imaginary parts of an expression using the real() ...

How can I expand a complex number in Real + i*Imaginary parts using symbolic variables?

Not sure if it is what you are trying to do, but you can extract the real and imaginary parts of an expression using the real() ...

casi 4 años ago | 0

Answered

Error with symbolic integral: Input arguments must be convertible to floating-point numbers

All arguments of the max() function must be convertible to floating point (numeric) numbers. You cannot use max() with purely sy...

Error with symbolic integral: Input arguments must be convertible to floating-point numbers

All arguments of the max() function must be convertible to floating point (numeric) numbers. You cannot use max() with purely sy...

casi 4 años ago | 3

| accepted

Answered

Is there a way to access the underlying model/script of a Simulink/Simscape component?

Unfortunately the function plotting the I-V curve is compiled, which means that you cannot access its source code. There is no w...

Is there a way to access the underlying model/script of a Simulink/Simscape component?

Unfortunately the function plotting the I-V curve is compiled, which means that you cannot access its source code. There is no w...

casi 4 años ago | 2

| accepted

Answered

Add Reset Function to Simscape Integrator Block

I am not a Simscape developer, but from what I know Simscape will not let you manually reset integrators. A work around is to us...

Add Reset Function to Simscape Integrator Block

I am not a Simscape developer, but from what I know Simscape will not let you manually reset integrators. A work around is to us...

casi 4 años ago | 0

Answered

Help on hydraulic actuator controller(pid)

If is just a problem if interfacing a Simulink PID with a Simscape valve, there are Simulink-PS Converter blocks to do that.

Help on hydraulic actuator controller(pid)

If is just a problem if interfacing a Simulink PID with a Simscape valve, there are Simulink-PS Converter blocks to do that.

casi 4 años ago | 0

Answered

Simscape Physical Signal: Why does is exist?

Simulink signals are causal signals with a sampling rates. Simscape physical signals are variables with time derivatives. These ...

Simscape Physical Signal: Why does is exist?

Simulink signals are causal signals with a sampling rates. Simscape physical signals are variables with time derivatives. These ...

casi 4 años ago | 0

| accepted

Answered

How do I effectively search through a matrix that represents pixels of an image?

You could vectorize the inner loop using find()

How do I effectively search through a matrix that represents pixels of an image?

You could vectorize the inner loop using find()

casi 4 años ago | 0

Answered

How to design a pneumatic cylinder in Simulink ??

Pneumatic systems are modeled using the gas domain from the Simscape Foundation library. <https://www.mathworks.com/help/physmo...

How to design a pneumatic cylinder in Simulink ??

Pneumatic systems are modeled using the gas domain from the Simscape Foundation library. <https://www.mathworks.com/help/physmo...

casi 4 años ago | 0

| accepted

Answered

Using Cell Arrays in Interpolants

There is a problem with your last snippet of code. Here is how you should correct it. testcell = {[1;3]; [2; 4]}; F(test...

Using Cell Arrays in Interpolants

There is a problem with your last snippet of code. Here is how you should correct it. testcell = {[1;3]; [2; 4]}; F(test...

casi 4 años ago | 1

| accepted

Answered

Performing calculation with multiple conditions with for loop and nested if statements

This code is working fine. Are your sure you loaded T1 properly? As KSSV mentioned, you do not need a for loop to do this calcu...

Performing calculation with multiple conditions with for loop and nested if statements

This code is working fine. Are your sure you loaded T1 properly? As KSSV mentioned, you do not need a for loop to do this calcu...

casi 4 años ago | 1

| accepted

Answered

How can I get 3 decimals placeś ine the table?

Set the column type to char, and use sprintf to format the numbers with the desired number of decimal places. app.UITable.C...

How can I get 3 decimals placeś ine the table?

Set the column type to char, and use sprintf to format the numbers with the desired number of decimal places. app.UITable.C...

casi 4 años ago | 0

| accepted

Answered

How to display data against time and location (coordinates)

You can control the color of the scatter points using the c parameter of the scatter() function. <https://www.mathworks.com/hel...

How to display data against time and location (coordinates)

You can control the color of the scatter points using the c parameter of the scatter() function. <https://www.mathworks.com/hel...

casi 4 años ago | 0

Answered

can anybody please explain me that how can i write the label and make shadow in the region? i have an example attached here

To plot the shadow. <https://www.mathworks.com/help/matlab/ref/area.html> To add text to your plot <https://www.mathwor...

can anybody please explain me that how can i write the label and make shadow in the region? i have an example attached here

To plot the shadow. <https://www.mathworks.com/help/matlab/ref/area.html> To add text to your plot <https://www.mathwor...

casi 4 años ago | 1

Answered

what the loop or function to display each item?

What about something like this? numbers = randi(100, 1,10); for k=1:numel(numbers) disp(numbers(k)) pa...

what the loop or function to display each item?

What about something like this? numbers = randi(100, 1,10); for k=1:numel(numbers) disp(numbers(k)) pa...

casi 4 años ago | 0

Answered

Why I am getting empty sym for vpasolve?

Since thetac is an array of 15 elements, you are trying to solve a system of 15 incompatible equations, therefore, there is no a...

Why I am getting empty sym for vpasolve?

Since thetac is an array of 15 elements, you are trying to solve a system of 15 incompatible equations, therefore, there is no a...

casi 4 años ago | 0

| accepted

Answered

Solving a non-standard ODE

Create a interpolation of r(t), for example using interp1(), then use the interpolation routine in an ODE solver.

Solving a non-standard ODE

Create a interpolation of r(t), for example using interp1(), then use the interpolation routine in an ODE solver.

casi 4 años ago | 0

Answered

Solve the following ordinary differential equation subject to initial condition y(0)=1. Use the Runge Kutta 4th order method, and hence find the value of y when t=0.5.

<https://www.mathworks.com/help/matlab/ref/ode45.html>

Solve the following ordinary differential equation subject to initial condition y(0)=1. Use the Runge Kutta 4th order method, and hence find the value of y when t=0.5.

<https://www.mathworks.com/help/matlab/ref/ode45.html>

casi 4 años ago | 0

Answered

Recommended books on machine learning?

<https://www.mathworks.com/campaigns/products/offer/machine-learning-with-matlab.html Machine Learning with MATLAB>

Recommended books on machine learning?

<https://www.mathworks.com/campaigns/products/offer/machine-learning-with-matlab.html Machine Learning with MATLAB>

alrededor de 4 años ago | 0

Answered

I am getting an error 'Dimensions of matrices being concatenated are not consistent' I have attached the m-files. Thank you for your help:)

In the RHS function, the size of parameter3 is 1x28. You probably need to correct your code so that its size is 1x1. Maybe this ...

I am getting an error 'Dimensions of matrices being concatenated are not consistent' I have attached the m-files. Thank you for your help:)

In the RHS function, the size of parameter3 is 1x28. You probably need to correct your code so that its size is 1x1. Maybe this ...

alrededor de 4 años ago | 0

Answered

what makes the discharging energy of the capacitor is higher than that already has been charged?

_its clear the discharging has more power than charging_ There is no physical problem with the discharging power being greate...

what makes the discharging energy of the capacitor is higher than that already has been charged?

_its clear the discharging has more power than charging_ There is no physical problem with the discharging power being greate...

alrededor de 4 años ago | 0

| accepted

Answered

How can I model a massless connector in simscape 2nd generation?

There is no equivalent of the Spherical-Spherical connector in the second generation. Such joint would lead to numerical problem...

How can I model a massless connector in simscape 2nd generation?

There is no equivalent of the Spherical-Spherical connector in the second generation. Such joint would lead to numerical problem...

alrededor de 4 años ago | 0

| accepted

Answered

Reduce reduce the number of for loops?

Vectorize your code <https://www.mathworks.com/help/matlab/matlab_prog/vectorization.html>

Reduce reduce the number of for loops?

Vectorize your code <https://www.mathworks.com/help/matlab/matlab_prog/vectorization.html>

alrededor de 4 años ago | 0

Answered

SimukinkでCAN通信を取り扱えるか

SimulinkでCAN通信するにはVehicle Network Toolboxが必要です。 <https://www.mathworks.com/discovery/can-network.html>

SimukinkでCAN通信を取り扱えるか

SimulinkでCAN通信するにはVehicle Network Toolboxが必要です。 <https://www.mathworks.com/discovery/can-network.html>

alrededor de 4 años ago | 2