Statistiques
RANG
337
of 295 569
RÉPUTATION
244
CONTRIBUTIONS
10 Questions
84 Réponses
ACCEPTATION DE VOS RÉPONSES
0.0%
VOTES REÇUS
43
RANG
2 986 of 20 247
RÉPUTATION
538
CLASSEMENT MOYEN
5.00
CONTRIBUTIONS
8 Fichiers
TÉLÉCHARGEMENTS
33
ALL TIME TÉLÉCHARGEMENTS
4148
CONTRIBUTIONS
0 Publications
CONTRIBUTIONS
0 Public Chaîne
CLASSEMENT MOYEN
CONTRIBUTIONS
0 Point fort
NOMBRE MOYEN DE LIKES
Feeds
Question
How can I get a list of all user-settable Simulink model settings that are evaluated?
How can I get a list of all user-settable Simulink model settings that are evaluated (strings that are executed as code to get t...
environ 7 ans il y a | 1 réponse | 0
0
réponseQuestion
How can I tell (programmatically) if my Simulink Block points to a user-defined library or a built-in one?
I have a list of block names in a cell array and want to delete the entries that correspond to resolved links to built-in librar...
environ 7 ans il y a | 1 réponse | 0
0
réponsedividing a table into an array of subtables
In general, your task will be easier if you start by filling in those blank IDs. I will use |data| to refer to your table. ...
environ 7 ans il y a | 1
| A accepté
How to integrate a distribution function for a specific interval?
To make your empirical CDF into a function that |integral| can use, you should interpolate |distribution_2|. Because of the way ...
environ 7 ans il y a | 0
| A accepté
Average IF NaN counting
Some test data x = randn(20, 207); x(randi(numel(x), 800, 1)) = nan; Identify the NaNs with |isnan| and count the numbe...
environ 7 ans il y a | 1
| A accepté
How can i solve the error in the code given below? I'm getting the following error In an assignment A(:) = B, the number of elements in A and B must be the same.
Your function |k| returns 51 outputs. MATLAB issues that error when your code asks to store the 51 corresponding integrals in th...
environ 7 ans il y a | 0
Update axes position properly
When you create your three axes (titled A, B, and C) they appear from right to left across the figure and in reverse order (C, B...
environ 7 ans il y a | 0
| A accepté
How can I change my for loop to interpret different columns?
I am guessing that your Excel spreadsheet has a header row, an answer key row, then a row per student with their answers. You im...
environ 7 ans il y a | 0
Consistently generating same random sequence with for and parfor loop
You can produce the same random numbers in a |parfor| loop if you explicitly set the random number generator type to be the same...
environ 7 ans il y a | 1
| A accepté
Question
Is there a way to get the Simulink real-time parameter set (rtp) from a rapid accelerator build without rebuilding it?
I am building and using a rapid accelerator target for |myModel| using rtp = Simulink.BlockDiagram.buildRapidAcceleratorTar...
plus de 7 ans il y a | 1 réponse | 0
1
réponseHow can I get the plot correctly?
Your function get_critical_value is not build to handle array inputs. It is always nice if you can vectorize your function to ta...
plus de 7 ans il y a | 0
| A accepté
Finding tunable parameters used in Simulink model
I believe you are looking for <https://www.mathworks.com/help/simulink/slref/simulink.findvars.html Simulink.findVars>. To find ...
plus de 7 ans il y a | 2
| A accepté
How to protect against writing to structure passed as input only in generated code?
To address this issue in your example, I renamed the inputs to |*_in| and then assigned them to variables under your original na...
plus de 7 ans il y a | 0
Question
Setting Simulink signal logging settings without modifying the model
I have a large Simulink model configured to log certain signals including some inside referenced models. I see that I can use a ...
environ 8 ans il y a | 1 réponse | 0
0
réponseCoder fails due to missing file that should be read while running
You could wrap that part in |if <http://www.mathworks.com/help/compiler/isdeployed.html isdeployed>|
environ 8 ans il y a | 0
Change all but one value to one at random within rows
% locate all rows and columns with ones [a,b] = find(x); % randomize the order of the rows and keep the column indic...
environ 8 ans il y a | 0
| A accepté
How to add +180 degree in phase of bode plot?
If you generate the plot with |bodeplot|, you can use the phase matching feature described in <https://www.mathworks.com/help/co...
environ 8 ans il y a | 0
Remove dashed lines from Simulink diagram
delete_line(find_system(your_model, 'FindAll', 'on', 'Type', 'line', 'Connected', 'off'))
environ 8 ans il y a | 2
can u help me to denote this equation ( symbol error probability ) in matlab ??
M, k, E_b, N_0 = ? m = 1:(M-1); binocoeff = arrayfun(@(m)nchoosek(M-1,m),m); sum((-1).^(m+1).*binocoeff./(m+1).*exp...
environ 8 ans il y a | 0
| A accepté
In an assignment A(:) = B, the number of elements in A and B must be the same.
It looks like one of the outputs of your function |ols| is not a scalar. The error you are seeing is the same as if you executed...
environ 8 ans il y a | 2
How do I feed images from a folder into MATLAB periodically?
I think a <https://www.mathworks.com/help/matlab/matlab_prog/use-a-matlab-timer-object.html |timer|> and <https://www.mathworks....
environ 8 ans il y a | 0
| A accepté
legend command and the Tex interpreter
You can use set(L,'Interpreter','none') where |L| is your legend handle or object. You could either return |L| when you ...
environ 8 ans il y a | 0
| A accepté
how to convert wind direction to degrees?
You could store the names and values in arrays and look up the angle corresponding to the matching name. directionValues = ...
plus de 8 ans il y a | 1
| A accepté
splitting dataset to groups with equal means
If your variables are sized similarly to your example, you can take the brute force approach and use |perms| to test every possi...
plus de 8 ans il y a | 0
How do I create a vector array out of certain values of a matrix?
Using some example data, here is the code using logical indexing to grab all the values of the matrix whose column index is grea...
plus de 8 ans il y a | 0
Scanning Matrix For Changes In Polarity
You could use |diff| and |sign| to create a logical array, then |cumsum| to convert that to a group index. % where x is you...
plus de 8 ans il y a | 0
| A accepté
How to use AND in an if loop to find the first repeated value
You can accomplish this with |intersect|. To illustrate, let's make an example file: mydata = randi(9,[100,6]); myfile =...
plus de 8 ans il y a | 0
how to turn "points" in scatter diagram into "lines"
You could display the data as an image. I see that your x values are all integers in your text files. If this will always be tru...
plus de 8 ans il y a | 0
Plotting two vectors for a period of time
% From your question: N = 100; x = [1.1 2.4 5.0 6.00 9.6]; y = [0.2 0.3 0.5 0.67 0.9]; % A little more setup ...
plus de 8 ans il y a | 1
| A accepté
How to Write Each Each Expression in a Separate Row
You can use three dots (ellipsis) to extend MATLAB code onto the next line. <http://www.mathworks.com/help/matlab/matlab_prog...
plus de 8 ans il y a | 0