Statistics
0 Questions
99 Answers
RANK
2 631
of 298 896
REPUTATION
22
CONTRIBUTIONS
0 Questions
99 Answers
ANSWER ACCEPTANCE
0.00%
VOTES RECEIVED
3
RANK
of 20 655
REPUTATION
N/A
AVERAGE RATING
0.00
CONTRIBUTIONS
0 Files
DOWNLOADS
0
ALL TIME DOWNLOADS
0
RANK
of 162 825
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
How to set up while loop to end with a specific count of strings
Hi @Mahagoni, The 'break' statement can be used to terminate a loop immediately once an exit condition is met- in this case, wh...
9 dagar ago | 0
simulink requires simulink error
Hi @Anil Kumar, Refer to this link which answers a similar question - https://www.mathworks.com/matlabcentral/answers/1572663-s...
10 dagar ago | 0
Assertion failed: calledFcnInfo->get_path_fcn_info()
Hi @Romeo Coletti, I encountered the same error quite a few times when I was working with MATLAB R2021b long back. I could not ...
ungefär en månad ago | 0
Boolean to double without changing the boolean
Hi @Erik Johan, I had faced a similar problem when working with continuous-time blocks in a model that used fixed step solvers....
ungefär en månad ago | 0
Index into array out of range error in simulink
Hi @Rajashree Annapillai, MATLAB Function Blocks always need to be compatible for code generation but the code provided above h...
ungefär en månad ago | 1
syntax error using roundn in fcn block
Hi @William, 'roundn' is not mentioned in the list of supported functions in Simulink Fcn Block - see here. Hence, it would alw...
ungefär en månad ago | 0
"The 'Label' property name is ambiguous in the 'Transition' class " error
Hi @Lucas S, I had also encountered the same error while using MATLAB R2019a. The error was because of the partial property n...
ungefär en månad ago | 0
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...
ungefär 2 månader 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 ...
ungefär 2 månader 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...
ungefär 2 månader 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....
ungefär 2 månader 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 ...
ungefär 2 månader 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...
2 månader 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 ...
2 månader 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...
2 månader 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....
3 månader 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...
3 månader 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...
3 månader 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...
3 månader 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...
3 månader 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 ...
3 månader 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...
3 månader 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) ...
3 månader 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...
3 månader 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...
3 månader 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:...
3 månader 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...
3 månader 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...
3 månader 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...
3 månader 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 ...
4 månader ago | 0