統計
All
Feeds
解決済み
Find a subset that divides the vector into equal halves
Given a vector x, return the indices to elements that will sum to exactly half of the sum of all elements. Example: Inpu...
7年弱 前
解決済み
Spot the outlier
All points except for one lie on a line. Which one is the outlier? Example: You are given a list of x-y pairs in a column ...
7年弱 前
解決済み
Make a full wave rectifier
Produce a full wave rectifier waveform for the given sine wave source. For a sine wave input, the output of the full wave rec...
7年弱 前
質問
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...
約7年 前 | 0 件の回答 | 0
0
回答質問
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...
約7年 前 | 0 件の回答 | 0
0
回答回答済み
dividing 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. ...
dividing 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. ...
約7年 前 | 1
| 採用済み
回答済み
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 ...
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 ...
約7年 前 | 0
| 採用済み
回答済み
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...
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...
約7年 前 | 1
| 採用済み
回答済み
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...
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...
約7年 前 | 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...
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...
約7年 前 | 0
| 採用済み
回答済み
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...
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...
約7年 前 | 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...
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...
約7年 前 | 1
| 採用済み
質問
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...
約7年 前 | 1 件の回答 | 0
1
回答回答済み
How 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...
How 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...
約7年 前 | 0
| 採用済み
回答済み
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 ...
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 ...
7年以上 前 | 2
| 採用済み
回答済み
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...
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...
7年以上 前 | 0
解決済み
How many jokers?
* Given DNA codes of a group of suspects, * and a code for certain types of jokers, * Count how many jokers of that type. * ...
8年弱 前
質問
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 ...
8年弱 前 | 0 件の回答 | 0
0
回答回答済み
Coder 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>|
Coder 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>|
約8年 前 | 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...
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...
約8年 前 | 0
| 採用済み
回答済み
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...
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...
約8年 前 | 0
回答済み
Remove dashed lines from Simulink diagram
delete_line(find_system(your_model, 'FindAll', 'on', 'Type', 'line', 'Connected', 'off'))
Remove dashed lines from Simulink diagram
delete_line(find_system(your_model, 'FindAll', 'on', 'Type', 'line', 'Connected', 'off'))
約8年 前 | 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...
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...
約8年 前 | 0
| 採用済み
回答済み
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...
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...
約8年 前 | 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....
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....
約8年 前 | 0
| 採用済み
送信済み
statusbarTimer
Adds a count-up timer to the status bar of the Command Window or a figure
約8年 前 | ダウンロード 1 件 |
回答済み
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 ...
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 ...
約8年 前 | 0
| 採用済み