답변 있음
SimEvents Control Entity Gate
You implemented the Entity Gate like this, Because you show the enable port, I found that the gate will be open once the enab...

6년 초과 전 | 0

| 수락됨

답변 있음
Provide Duty Signal delay
I would do something like this (.slx file is attached). So the signals will be generated by each Pulse Generator. At each per...

6년 초과 전 | 0

| 수락됨

답변 있음
Single zero, two poles, plus time delay transfer function in Simulink
I am not sure if this work and I have not test it with your transfer function, but I would do something like this. So, the Ze...

6년 초과 전 | 0

| 수락됨

답변 있음
Alternative to Simulink obsoleted Get Attribute in Simevents
Check the Common Design Patterns in the Simulink Library (link to documentation). On the top row, there should be the proposed ...

6년 초과 전 | 0

답변 있음
Find out timing parameters like rise time, settling time, time constant etc..
If I want to do everything in MATLAB, I would add a branch from the output of the system to a To Workspace block. After that, al...

6년 초과 전 | 0

| 수락됨

답변 있음
How can I combine a delay with an amplitude weighting in simulink?
I'm pretty sure my answer does not have a solid theoretical background since I basically do a trial & error, but I managed to ma...

6년 초과 전 | 0

| 수락됨

답변 있음
Calculate RMS SPL of long term acoustic data
For the matlab function rms, I suggest you see help rms since it listed how to use that function and apparently it can do an r...

6년 초과 전 | 0

제출됨


Impedance Analysis Calculator
Calculate impedance, reflection coefficient, transmission coefficient, and VSWR.

6년 초과 전 | 다운로드 수: 2 |

5.0 / 5

답변 있음
How can I do an calculation where it uses the previous answer to calculate the next
I would do something like this Tt = 290; %temperature at the start for i=1:24 %loop for 24 hours temp = (3600*Tt(end) + 3...

6년 초과 전 | 0

| 수락됨

답변 있음
Varying the amount of available resource in Resource Pool block [updated]
[UPDATE per 30/07/2019, 15h08] For anyone interested, I changed what I wanted from "varying the amount of resource" to "vary...

6년 초과 전 | 0

| 수락됨

질문


Varying the amount of available resource in Resource Pool block [updated]
I am currently developing a model using SimEvents (MATLAB/Simulink R2017b) as shown in the picture below. One of the paramete...

6년 초과 전 | 답변 수: 1 | 0

1

답변

문제를 풀었습니다


Is My Wife Wrong?
Answer the question. (see also <http://www.mathworks.com/matlabcentral/cody/problems/149-is-my-wife-right Problem 149: Is my ...

6년 초과 전

문제를 풀었습니다


So many choices
For inputs _n_ and _k_ (in that order), output the number of ways that k objects can be chosen from amongst n distinct objects. ...

6년 초과 전

문제를 풀었습니다


Back to basics 1 - Saving
Covering some basic topics I haven't seen elsewhere on Cody. Given an input variable 'x', save it to disk in a file named 'co...

6년 초과 전

문제를 풀었습니다


Bottles of beer
Given an input number representing the number of bottles of beer on the wall, output how many are left if you take one down and ...

6년 초과 전

문제를 풀었습니다


Tricky timing
Write a function that takes between 0.5 seconds and 0.6 seconds to run.

6년 초과 전

문제를 풀었습니다


2 b | ~ 2 b
Given a string input, output true if there are 2 b's in it, false if otherwise Examples: 'Macbeth' -> false 'Publius Cor...

6년 초과 전

문제를 풀었습니다


Convert a numerical matrix into a cell array of strings
Given a numerical matrix, output a *cell array of string*. For example: if input = 1:3 output is {'1','2','3'} whic...

6년 초과 전

문제를 풀었습니다


Is my wife right? Now with even more wrong husband
Again, as in "Is my wife right?" ( <http://www.mathworks.com/matlabcentral/cody/problems/149-is-my-wife-right> ), answer 'yes' r...

6년 초과 전

문제를 풀었습니다


All your base are belong to us
Find the base _b_ logarithm of the input decimal number _x_. Express the output as a decimal number. The first argument is the n...

6년 초과 전

문제를 풀었습니다


DC chopper
Input x is the sampled signal vector, may have both AC and DC components. output vector y should have AC components removed then...

6년 초과 전

문제를 풀었습니다


Filter AC, pass DC
Input x is the sampled signal vector, may have both AC and DC components. Output vector y should not contain any AC component. ...

6년 초과 전

문제를 풀었습니다


Duplicate each element of a vector.
for an n-dimensional vector x, the function should return another vector 2n-dimension which each element is repeated twice. Ex...

6년 초과 전

문제를 풀었습니다


0<=x<=pi?
Check whether the given angle is between zero and pi. Return logical true or false.

6년 초과 전

문제를 풀었습니다


Predicting life and death of a memory-less light bulb
*&#128161 &#128161 &#128161 &#128161 &#128161 &#128161 &#128161 &#128161 &#128161 &#128161 &#128161 &#128161 &#128161 &#128161 &...

6년 초과 전

문제를 풀었습니다


Mysterious digits operation (easy)
What is this digit operation? 0 -> 0 1 -> 9 121 -> 9 44 -> 6 15 -> 5 1243 -> 7 ...

6년 초과 전

문제를 풀었습니다


Narcissistic number ?
Inspired by Problem 2056 created by Ted. In recreational number theory, a narcissistic number is a number that is the sum of ...

6년 초과 전

문제를 풀었습니다


Which doors are open?
There are n doors in an alley. Initially they are all shut. You have been tasked to go down the alley n times, and open/shut the...

6년 초과 전

문제를 풀었습니다


Compute Fibonacci Number
Compute the _n_-th Fibonacci Number f(0) = 0, f(1) = 1, f(2) = 1, f(3) = 2, ... f(42) = 267914296

6년 초과 전

문제를 풀었습니다


Matlab Basics - Absolute Value
Write a script that returns the absolute value of the elements in x e.g. x = [-1 -2 -3 -4] --> y = [1 2 3 4]

6년 초과 전

더 보기