Réponse apportée
How to make input values go into a matrix set?
InputStr= input(' Enter coordinate point location (x,y)','s'); Command Window: >> 2 , 4 PointA=str2num(InputStr)

plus de 5 ans il y a | 1

Réponse apportée
i dont know what is this answer
The value is too big to show "real number" >> a=1000 a = 1000 >> format ShortEng >> a a = 1.0000e+003

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
block power of 3
Product block with 3 inputs Fcn block specified as "u^3"

plus de 5 ans il y a | 0

Réponse apportée
How to correctly set instance parameters of model reference?
In the referenced model, you need to create workspace variables, set 'ParameterArgumentNames' first as described in the document...

plus de 5 ans il y a | 1

Réponse apportée
How to extract matrix with different starting index for each row?
%% Orig=transpose(reshape(1:20,5,[])) StartPos=[2;1;3;2]; Wid=3; row=repmat((1:size(Orig,1))',1,Wid); col=StartPos+(0:Wid...

plus de 5 ans il y a | 1

| A accepté

Réponse apportée
Error while running Cyclomatic complexity check
Press Ctrl+D to update the mode, or better, run a simulation first to make sure your model has no errors first.

plus de 5 ans il y a | 0

Réponse apportée
help on simulink input
You don't remove the Constant block. You "Connect" the Slider to the Constant block. Double click the Slider, Drag the Constant...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
Use Simulation Time of Simulink in Matlab function when threshold is exceeded
Use Step block to specify time and value. This is your threshhold. Use Comparator block to compare your incoming signal with t...

plus de 5 ans il y a | 0

Réponse apportée
Round a signal in simulink?
'simulink/Discontinuities/Quantizer'

plus de 5 ans il y a | 0

Réponse apportée
Rate Transition in If-action Subsystems
Let's say your whole model is executed at every 0.1s. At every 0.1 second, the condition is checked and the "If-action" subsyste...

plus de 5 ans il y a | 1

| A accepté

Réponse apportée
How to get Simulation Status correctly?
Use set_param('vdp','SimulationCommand','continue') to change the simulation status, other options are 'start', 'pause','stop'. ...

plus de 5 ans il y a | 0

Réponse apportée
Plot not showing line fully
Might it contain nan? plot([1:3,nan,nan,4:6])

plus de 5 ans il y a | 0

Réponse apportée
Problem with conection port/ input port in subsystem
Most likely, you need this "Physical Signal to Simulink Signal Convert" block. https://www.mathworks.com/help/releases/R2020b/p...

plus de 5 ans il y a | 0

Réponse apportée
Dot indexing is not supported for variables of this type when trying to write value into static text box
set(hObject, 'String', num2str(value)) see this comment ? % hObject handle to edit1 (see GCBO) % handles empty - ha...

plus de 5 ans il y a | 0

Réponse apportée
Lookup value in one array based on interpolated point in another?
interp1() in MATLAB "1-D Lookup Table" block in Simulink.

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
How can two people work at the same time at a code
This is a typical source control issue. Take a look at GitHub.com. There is free version available. MATLAB supports Git.

plus de 5 ans il y a | 1

Réponse apportée
how to get keyboard in matlab
use function input()?

plus de 5 ans il y a | 0

Réponse apportée
simulink models with iPad
Would MATLAB Online be a solution?

plus de 5 ans il y a | 0

Réponse apportée
How to find each model uses given block?
You will need to go through a loop, open or load each model, find if particular block exists and then close the model. open_sys...

plus de 5 ans il y a | 0

Réponse apportée
How to divide an array into sperate vectors.
use reshape() to transform it to 4x250 or 250x4 then loop through row or column

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
simulink not updating scope
It might be a visual misconception, e.g. the simulation runs too fast for eyes to catch. Change the simulation stop time to be '...

plus de 5 ans il y a | 0

Réponse apportée
Simulink-Blockmask: How to add a button and assign a callback by m-file script?
To get mask parameters get_param(gcb,'MaskNames'), or 'MaskVariables','MaskPropertyNameString',... To do mask programmatically...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
'Decimation' Error in Simulink
Follow the link of the error message to find the involved block. You must have provied an incorrect number for the "Decimation" ...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
Referenced Data Dictionaries and Hierarchical Models
You are over-thinking and making it overly complicated. There is no hierarchy for parameters. Simply create Kp1, Kp2, Kp3 or bet...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
trying to open .fig file but an error shows
Some times, or many times, when you save a .fig file, there is also a .mat file saved for it. You need both files to be able to ...

plus de 5 ans il y a | 0

Réponse apportée
What are the obsessions you saw in MATLAB Answers or in MATLAB programming?
I will start with the popular ones No-looper: don't want to use for-loop One-liner: Must get the result in one line of code G...

plus de 5 ans il y a | 1

Question


What are the obsessions you saw in MATLAB Answers or in MATLAB programming?
Those obsessions that seem to persist but not necessarly good.

plus de 5 ans il y a | 4 réponses | 0

4

réponses

Réponse apportée
how to superscript in subtitle of a figure?
h=suptitle('CH5NO2^+')

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
Rounding set of number to closest number in array
interp1(yaxis,yaxis,x_n,'nearest')

plus de 5 ans il y a | 1

Réponse apportée
how to add single quotes ' ' in a string?
a='this include ''single quote'' and others.' b="using 'string' is better"

plus de 5 ans il y a | 0

Charger plus