
Rajanya
Followers: 0 Following: 0
Statistics
0 Questions
92 Answers
RANK
2,836
of 298,528
REPUTATION
20
CONTRIBUTIONS
0 Questions
92 Answers
ANSWER ACCEPTANCE
0.00%
VOTES RECEIVED
2
RANK
of 20,607
REPUTATION
N/A
AVERAGE RATING
0.00
CONTRIBUTIONS
0 Files
DOWNLOADS
0
ALL TIME DOWNLOADS
0
RANK
of 161,568
CONTRIBUTIONS
0 Problems
0 Solutions
SCORE
0
NUMBER OF BADGES
0
CONTRIBUTIONS
0 Posts
CONTRIBUTIONS
0 Public Channels
AVERAGE RATING
CONTRIBUTIONS
0 Highlights
AVERAGE NO. OF LIKES
Feeds
Error in Matlab Function Block
Hi @Alejandro, This was a known bug in MATLAB R2013b or before (see https://www.mathworks.com/support/bugreports/1002236) Upgr...
23 days ago | 0
Simulation stopped because of a runtime error
Hi @Maryam Nezami, The error is because the following expression '100-max(size(k))-100' evaluates to a negative integer within ...
24 days ago | 0
Simscape: connecting ports to an scope
Hi @Rodrigo Gastón, While the brown lines represent physical signals, the green/blue lines represent connections within mechani...
25 days ago | 0
I am receiving an error "Inferred size ('[1 3]') for data 'Pdot' does not match back propagated size ('[3]') from Simulink." . Pdot comes out of a Matlab function block in Simulink which is being fed into a Demux.
Refer to the following MATLAB Answers post - https://www.mathworks.com/matlabcentral/answers/266897-simulink-compilation-errors....
25 days ago | 0
Errors during my simulation
Hi @Nicolas Frison, The error is because the 'Simulink-PS Converter' is expecting a scalar (size 1 vector) input signal but is ...
25 days ago | 0
Simulink compilation errors ?
Hi @Henry Buck, You can go to Model Explorer > find 'gate_h' and select it > go to the general settings of the variable > force...
26 days ago | 0
syntax error, Block error
Hi @Ahmed Sayed, The errors in the model are due to the fact that the expressions within the 'Fcn' block must be in terms of a ...
26 days ago | 0
when i type " [aa,bb,cc,dd]=linmod('NAME',[1 0],0);" to linearise my model at point [1 0] with MATLAB,it shows me this error:
Hi @Dhruv Trivedi, The error is not specific to 'linmod' but occurs because input data has been specified without any root leve...
26 days ago | 0
Dimension 2 is fixed on the left-hand side but varies on the right ([1 x 1] ~= [1 x :?])
Hi @Arkanra Kadhum, These errors occur because Simulink is unable to determine the output dimensions from the 'find ' function....
2 months ago | 0
Add additional name into a matrix
Hi, If 'X' is a string array, you can just concatenate the new string to 'X' like (refer here): X = ["abc01", "bcd12", "cde03...
2 months ago | 0
max function does not work with zero
Hi @Søren Schwartz, 'M1' in the script is a 1000 x 1 array i.e. a column vector with only one column. 'M1(1,o)' tries to extr...
2 months ago | 0
| accepted
How to create a row vector upto a particular distance with the help of a variable?
Hi @AMIT KUMAR, The error is because of a missing parentheses pair (the part in italics become separate completely leading to t...
2 months ago | 0
Not enough input arguments. Error in get_Result (line 6) if(answers{i}.charAt(j)==correct.charAt(j))
Hi @abdulelah farhat, 'charAt' method is not available in MATLAB (it's a Java method!). As I understand from the code, the fu...
2 months ago | 0
Why am I receiving "Subscript indices must be real positive integers or logicals" error in my Euler's method code.
Hi @cpv008, The mentioned error is because of incorrect indexing of array 'y'. In MATLAB, all array indices must be logical or ...
2 months ago | 0
When i use xlsread command, i get this error "index out of bounds because size(data)=[33,5]."
Hi @ram, This just meant that the file 'Crss_measured.xlsx' had only 5 columns (size - [33,5]) and 'data(:,7)' was trying to ac...
2 months ago | 0
Error: Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.
Hi @Mihir Choughule, 'sum' is a function and needs to be called with parentheses (not square brackets [.]) - sum((h-y).^2) ...
2 months ago | 0
Solution for Error: aFcnToAdd->isNamed()
Hi @David Vincon, This assertion error is mostly due to all the state names being commented in the stateflow chart. Uncommentin...
2 months ago | 0
matlab has encountered an internal problem and needs to close
Hi @pb, I had encountered a similar crash in MATLAB R2016a which got resolved when I upgraded the version. Hence, my suggestion...
2 months ago | 0
MATLAB crashes whenever running simulation in a .slx file
Hi @Mohamed Gad, This crash might be specific to Windows 11 because MATLAB R2021a did not have full Windows 11 support - https:...
2 months ago | 0
Why do wavwrite and audiowrite produce different results?
Hi @Bene Wilde, WAV files organize the whole file data as chunks identified by four-character code (FourCC) identifiers to iden...
2 months ago | 0
How to display struct along filed?
Hi @msahar, Assuming 'S' is a structure with the given fieldnames and values, you can loop through the structure and create the...
2 months ago | 0
csvwrite error: Undefined function 'real'
Hi @Donovan Magney, The error is because, in the code provided, the type of 'elementsMatrix' would be composite, mostly 'struct...
2 months ago | 0
How to use 'pause' function in Matlab Function Block?
Hi @Harshil Patel, You can either set the 'Step size' of the solver to be equal to 'Stop Time' (assuming 'Start Time is 0') or ...
3 months ago | 0
Switch case for subsystem ?
Hi @Steve, If you only want the result from the selected subsystem, you can use the 'Switch' block, with 'input' connected to t...
3 months ago | 0
How can I change the mode value of a variant subsystem during simulation?
Hi @Mihnea, I don't think this would have been possible for the earlier versions (where using conditional subsystems would have...
3 months ago | 0
How do i store Data types of Input and Outputs of a block in Simulink in a data dictionary ?
Hi @sachin narain, You can achieve the same if the entries are provided as Simulink parameters, like: parameter = Simulink.Par...
3 months ago | 0
How to add_block Sum of Elements instead of Sum block ?
Hi @Henry Buck, You can set the 'Inputs' parameter of the 'Sum' block to just '+', which will make the block function as a 'Sum...
3 months ago | 0
How do I change the initial value and final value parameters in a step change in Simulink from an m-file?
Hi @Gregory Bugli, The 'initial value' parameter in the 'Step function' is called 'Before' for programmatic use - refer here. ...
3 months ago | 0
How can I change the annotations of a block in Simulink Simscape to reflect the value of the parameter?
Hi @Javier, You can use a block's 'AttributesFormatString' parameter to display the specified block parameter values below the ...
3 months ago | 0
How to get names of input ports on simulink block?
Hi @Adam Truelove, You can utilize the 'get_param' function on any custom Simulink block that contains Inports or Outports to o...
3 months ago | 0