Réponse apportée
Help with function formula
t=0:0.5:2 y=t.^3./(3+3*t)+1

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
check if a condition is true for a certain time (Simulink)
Connect this condition to an integrator. If the condition is true, the integration will increase. Compare it to 0.8, you will ge...

plus de 6 ans il y a | 1

Réponse apportée
Is there a way to save snapshots of figures in a LiveScript without keeping the figure objectss open in a for loop?
use saveas() to save the figure image. test1.mlx, file size is 753k. 20 figures are saved. Each contains individual figure obje...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
Find matched string in table
isequal(T.Smoker, 'yes') strcmpi(T.Smoker, 'yes')

plus de 6 ans il y a | 0

Réponse apportée
Getting differnet answers fromMatlab for what looks like the same expression
Try this and hope you know why (-0.25)^.323

plus de 6 ans il y a | 0

Réponse apportée
prompt the user to select a csv file
uigetfile() only picks the file. Use csvread() afterwords

plus de 6 ans il y a | 0

Réponse apportée
Find index of values in a range
find(dist>4)

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
Fuzzy logic problem in simulink
Well, the message seems clear. The "input 1" is supposed to be between 0 and 1. But you have a very small negative value. I thin...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
Illegal use of reserved keyword "end".
I think you mean to define a function. The first line needs to be function [X_norm, mu, sigma] = featureNormalize(X)

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
Scope does only show one data point
Can someone from the Mathworks give an explaination of this change on the Scope block? I've answered questions similar to this t...

plus de 6 ans il y a | 4

| A accepté

Réponse apportée
Mxarray error using set_param in Function Block Simulink
When comparing char array, use strcmp() or isequal(), not to use "==", for example MyColor='red' strcmp(MyColor,'green') iseq...

plus de 6 ans il y a | 1

| A accepté

Réponse apportée
Simulink coder ert not working
You need the "Embedded Coder" toolbox to generate code for embedded real-time target.

plus de 6 ans il y a | 1

Réponse apportée
undefined variable or class when using imread for object recognition, machine learning
help imread

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
how to add columns to a matrix that matches a row value
[~,index]=ismember(M(:,1),N(:,1)); R=[M(:,1),N(index,2:3),M(:,2:end)]

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
How to make the vector the same length
when you do plot(x,y), x and y need to be same length. So in your code, Vds and d need to be same length, not between c and d y...

plus de 6 ans il y a | 0

Réponse apportée
comparing rows in cell array
unique(Allcases,'rows') might be easier.

plus de 6 ans il y a | 0

Réponse apportée
Output argument not assigned during call
X and Y are only assigned inside the for-loop, the for-loop is dependent on the value of "id", which is dependent on the result ...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
download 2019b update 3
Start MATLAB R2019b, at the top-right corner, look for a "Bell" icon. Hopefully, there is a red dot or number. That is the alert...

plus de 6 ans il y a | 0

Réponse apportée
How to get underlying numbers of enumeration?
Simulink.defineIntEnumType('BasicColors', {'Red', 'Yellow', 'Blue'}, [0;1;2]); a=BasicColors.Blue; a.real

plus de 6 ans il y a | 1

| A accepté

Réponse apportée
MISRA AC SLSF Document
These documents are available to purchase from the MISRA webstore MISRA AC GMG - Generic modelling design and style guidelines ...

plus de 6 ans il y a | 0

Réponse apportée
Write in a DocBlock programmaticaly
set_param(Hndle, 'UserData', B,'UserDataPersistent','On');

plus de 6 ans il y a | 1

| A accepté

Réponse apportée
level-2 matlab s-function error
This line is invalid. Dimension mismatch X=(F'-C*de)/M

plus de 6 ans il y a | 0

Réponse apportée
How do I set an initial value for an input in a MATLAB Function Block in Simulink?
The initial value of "U" is determined by the 1/z block. Set the initial value there.

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
How can I change the initial battery charge of the example microgrid in Matlab?
Right click, Mask, Look under Mask Find the Constant block showing "AH*0.2*3600". "0.2" is the determing value. Change it to be...

plus de 6 ans il y a | 1

Réponse apportée
What is Matlab command line equivalent to "Deploy to Hardware Ctrl+B" button in Simulink?
rtwbuild()

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
How to do a matrix from vectors
A = [single([time1 time2]) Hs_buoy Tm_buoy Dm_buoy]

plus de 6 ans il y a | 0

Réponse apportée
join cell arrays together
x=repmat({'the_output'},5,1); y=mat2cell((1:5)',ones(5,1),1); z=cellfun(@(a,b) [a,num2str(b)],x,y,'UniformOutput',false)

plus de 6 ans il y a | 1

Réponse apportée
Simulink : Get handle of a Matlab-Function block, inside Matlab-Function itself
I would think so, just try handle=get_param(Block,'handle') where "Block" is the full path of the MATLAB function block in your ...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
How to build x and y coordinates using a For loop
maybe it should be y=zeros(12,2) x(i,:)=[x1(i),x2(i)]; y(i,:)=[y1(i),y2(i)];

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
Simulink object... ...was changed during simulation
I had a user who had problem matching this although Simulink (earlier version) didn't give this exact error message. There is a...

plus de 6 ans il y a | 0

Charger plus