Réponse apportée
Programmatically Change Preferences?
to save matfiles as version 7.3, use save(FILENAME, ..., VERSION) to set MATLAB preference, https://www.mathworks.com/help/rele...

presque 6 ans il y a | 1

| A accepté

Réponse apportée
comparing table values using isequal
try TF = isequal (M.Var2{i},'f')

presque 6 ans il y a | 1

Réponse apportée
generating/extracting a simulink restart state from system output? ?problem with 'discrete' blocks?
Just got this: https://www.mathworks.com/help/simulink/slref/saving-and-restoring-simulation-operating-point.html

presque 6 ans il y a | 0

| A accepté

Réponse apportée
Inquiry of the error of output port data type which can't be fixed
'BusMultiObjectTracker1' is likely a Simulink.Bus object. Check it in base workspace or your Simulink Data Dictionary. The numbe...

presque 6 ans il y a | 0

Réponse apportée
How can I get the variant names inside a Simulink variant subsystem
If you run find_system(), set the 'Variants' option (use 'AllVariants'). For subsystem inside the variant subsystem, the propert...

presque 6 ans il y a | 1

| A accepté

Réponse apportée
Use the variable of function for title of a figure
Are you sure? put inputname(1) inside the function. It should show name as "MyStruct" if you call it with fullplot(MyStruct)

presque 6 ans il y a | 1

Réponse apportée
Simulink scope not displaying values.
Most likely the settings of the Scope. Click View, Style, set the "Marker" to be none. I've answered at least twice on similar...

presque 6 ans il y a | 0

Réponse apportée
Modifying parameters for S-function in a model which is compiled / run in rapid accelerator mode
Before the configureForDeployment line, use set_param('S_Function_Block','Param_Name','Param_Value') to change the parameter for...

presque 6 ans il y a | 0

Réponse apportée
How to start a simulation in steady-state ?
In Configuration Parameters, Data Import/Export, you can check and specify "Initial State". You can also save "States" for you...

presque 6 ans il y a | 0

Réponse apportée
'keyboard' calls fail outside try..catch when try..catch contains a keyboard call
There is no problem running the code in R2020a. run "which -all keyboard" to see if there are other function called keyboard D...

presque 6 ans il y a | 0

| A accepté

Réponse apportée
How to make recursion faster in Matlab (Matlab seems to forget steps already done)?
You might not need to use recursive function to get the solution. Instead, just calculate the result as a nxn matrix, but, it ne...

presque 6 ans il y a | 0

Réponse apportée
How to make recursion faster in Matlab (Matlab seems to forget steps already done)?
The code can be simplified first. I see the potential saving. f(a,1,20) depends on f(a,2,20) and f(a,1,19), which depends on f...

presque 6 ans il y a | 0

Réponse apportée
Simulink simulation to confirm the change of a state after n number of cycles
Use a "Detect Change" block and a "Counter" block. If no change is detected for "Nb_cycles" times, the output is ture, otherwis...

presque 6 ans il y a | 0

Réponse apportée
Problem with Controlled voltage source
In ideal circuit, connecting a capacitor in pararell with a voltage source would short-circuit the voltage source (when initiall...

presque 6 ans il y a | 1

| A accepté

Réponse apportée
Sizeof error and Z is a scalar/Vector but needs to be matrix
sizeof() is not a function. Maybe you want to use ndims()

presque 6 ans il y a | 0

Réponse apportée
Can I access the Unit of a Simulink.Parameter in a Mask?
Yes but it is not very elegant. "INPUTPARAM" is the name of your mask variable. You have to follow that to get the name of the...

presque 6 ans il y a | 0

| A accepté

Réponse apportée
Error using cos.Not enough input arguments.
try this line by line y=pi (cos(y))^2 cos^2*y

presque 6 ans il y a | 0

| A accepté

Réponse apportée
Inline to Anonymous Function
x =@(t) 5*sin(2*pi*1*t).*exp(-.4*t)'

presque 6 ans il y a | 0

Réponse apportée
How i convert a phrase like;(_x_1, or %diff) into a valid matlab variable? That i need to create a function?
If just want to create a valid MATLAB variable name, genvarname('_x_1') genvarname('%diff') matlab.lang.makeValidName('%diff'...

presque 6 ans il y a | 0

| A accepté

Réponse apportée
Trying to plot a step response of a given transfer function.
You probably meant tf1=p21. p2 itself is improper. I assume you know what it means in control theory.

presque 6 ans il y a | 1

| A accepté

Réponse apportée
using fprint with prompt
fprintf('The volumn of the cubic is: %d',v)

presque 6 ans il y a | 1

Réponse apportée
How to add ground and terminator in protected model
That is why it is called "proteted mode", right? There are different level of protection. You may be able to read-only the model...

presque 6 ans il y a | 0

Réponse apportée
Looping a simulink model for multiple time-input
load F.mat % attached % a matrix of F is loaded, it is a 512x201 double array p=size(F,2) % number of columns for n=1:2 % for...

presque 6 ans il y a | 0

| A accepté

Réponse apportée
Unable to print image of Subsystem in Simulink model in 2016b
In R2016b, it seems that the Subsystem needs to be open first. Add a line open_system() first.

presque 6 ans il y a | 0

| A accepté

Réponse apportée
can anybody help me with this error,load a file in workspace and ruleviewer
screen capture is hard to read. But the error seems to be that there are still parameters that are not set in base workspace. Ar...

presque 6 ans il y a | 0

Réponse apportée
Matlab not able to finalise running a script for a Simulink model
The warning messages are non-critical. It indicates some signals are "sent" but not used anywhere. Might it be that computer c...

presque 6 ans il y a | 0

Réponse apportée
Non Finite Derivative for Integrator Block
Most often this is caused by the ideal Derivative block. You have three in the model, two of them are in series. Comment out al...

presque 6 ans il y a | 0

Réponse apportée
MATLAB help with using nested loops in matricies
for x = 1:size(z,1)

presque 6 ans il y a | 1

Réponse apportée
Display the final value of a variable of a plot in figure window
something like this %% a=17.63*3.6; i=0:0.5:18 a=a*i; plot(i,a,'linewidth',1); hold on; %% offset=10...

presque 6 ans il y a | 0

| A accepté

Réponse apportée
Start simulink simulation from cetrain time
See these set_param('vdp','SimulationCommand','start') set_param('vdp','SimulationCommand','pause') set_param('vdp','Simulati...

presque 6 ans il y a | 0

| A accepté

Charger plus