Feeds
질문
Discrepancies between single and double precision sum over time
I attempted to isolate and better understand an issue happening in a more complex model. It came down to an internal "clock" we ...
거의 4년 전 | 답변 수: 1 | 1
1
답변문제를 풀었습니다
Rescale Scores
Each column (except last) of matrix |X| contains students' scores in a course assignment or a test. The last column has a weight...
4년 초과 전
문제를 풀었습니다
Calculate Inner Product
Given two input matrices, |x| and |y|, check if their inner dimensions match. * If they match, create an output variable |z|...
4년 초과 전
문제를 풀었습니다
Find the Best Hotels
Given three input variables: * |hotels| - a list of hotel names * |ratings| - their ratings in a city * |cutoff| - the rat...
4년 초과 전
문제를 풀었습니다
Crop an Image
A grayscale image is represented as a matrix in MATLAB. Each matrix element represents a pixel in the image. An element value re...
4년 초과 전
문제를 풀었습니다
Plot Damped Sinusoid
Given two vectors |t| and |y|, make a plot containing a blue ( |b| ) dashed ( |--| ) line of |y| versus |t|. Mark the minimum...
4년 초과 전
문제를 풀었습니다
Longest run of consecutive numbers
Given a vector a, find the number(s) that is/are repeated consecutively most often. For example, if you have a = [1 2 2 2 1 ...
4년 초과 전
문제를 풀었습니다
Calculate BMI
Given a matrix |hw| (height and weight) with two columns, calculate BMI using these formulas: * 1 kilogram = 2.2 pounds * 1 ...
4년 초과 전
문제를 풀었습니다
Calculate a Damped Sinusoid
The equation of a damped sinusoid can be written as |y = A.ⅇ^(-λt)*cos(2πft)| where |A|, |λ|, and |f| ...
4년 초과 전
문제를 풀었습니다
Solve a System of Linear Equations
*Example*: If a system of linear equations in _x₁_ and _x₂_ is: 2 _x₁_ + _x₂_ = 2 _x₁...
4년 초과 전
문제를 풀었습니다
Verify Law of Large Numbers
If a large number of fair N-sided dice are rolled, the average of the simulated rolls is likely to be close to the mean of 1,2,....
4년 초과 전
문제를 풀었습니다
Find the Oldest Person in a Room
Given two input vectors: * |name| - user last names * |age| - corresponding age of the person Return the name of the ol...
4년 초과 전
문제를 풀었습니다
Convert from Fahrenheit to Celsius
Given an input vector |F| containing temperature values in Fahrenheit, return an output vector |C| that contains the values in C...
4년 초과 전
문제를 풀었습니다
Calculate Amount of Cake Frosting
Given two input variables |r| and |h|, which stand for the radius and height of a cake, calculate the surface area of the cake y...
4년 초과 전
문제를 풀었습니다
Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...
4년 초과 전
답변 있음
Where do the thermal properties of the generic battery model come from?
The equations used in this model can be found in the documentation: https://www.mathworks.com/help/physmod/sps/powersys/ref/batt...
Where do the thermal properties of the generic battery model come from?
The equations used in this model can be found in the documentation: https://www.mathworks.com/help/physmod/sps/powersys/ref/batt...
4년 초과 전 | 1
답변 있음
Onda seno (Sine wave) at Simulink
Se entendi direito seu problema, você pode tentar algo assim (If I understood your problem correctly, you can try something like...
Onda seno (Sine wave) at Simulink
Se entendi direito seu problema, você pode tentar algo assim (If I understood your problem correctly, you can try something like...
4년 초과 전 | 0
답변 있음
Matlab spring equation question
The way I understand the problem, you need an array "x" as the result of this program, which will have the same size as the arra...
Matlab spring equation question
The way I understand the problem, you need an array "x" as the result of this program, which will have the same size as the arra...
대략 5년 전 | 0
답변 있음
How do I increase the font size of MATLAB Document Help?
Ctrl + '+' for increasing and Ctrl + '-' for decreasing. Or alternatively, press and hold Ctrl and roll your mouse wheel. Should...
How do I increase the font size of MATLAB Document Help?
Ctrl + '+' for increasing and Ctrl + '-' for decreasing. Or alternatively, press and hold Ctrl and roll your mouse wheel. Should...
대략 5년 전 | 1
답변 있음
Matlab graphs not showing
Nothing is plotted because Jx is all NaN's, so something is wrong with your calculations.
Matlab graphs not showing
Nothing is plotted because Jx is all NaN's, so something is wrong with your calculations.
대략 5년 전 | 0
| 수락됨
답변 있음
How to find value of X when Y reaches maximum value
Not sure what kind of output you want, but one way would be to get the derivative of your y(x) function. When it's "zero", it'...
How to find value of X when Y reaches maximum value
Not sure what kind of output you want, but one way would be to get the derivative of your y(x) function. When it's "zero", it'...
대략 5년 전 | 0
| 수락됨
답변 있음
SIMULINK step, ramp "Start time" on command
A possible solution would be to use an enable subsystem, where the enable signal would be the result of checking the pressure se...
SIMULINK step, ramp "Start time" on command
A possible solution would be to use an enable subsystem, where the enable signal would be the result of checking the pressure se...
대략 5년 전 | 0
| 수락됨
답변 있음
Finding Commented blocks programmatically
what about adding 'Commented','on' and 'Commented','through' to the find_system() arguments?
Finding Commented blocks programmatically
what about adding 'Commented','on' and 'Commented','through' to the find_system() arguments?
대략 5년 전 | 1
| 수락됨
답변 있음
Simulink - Interpreted Matlab Function: How can I define that I want two inputs to my function?
The Interpreted MATLAB function block only accepts one input afaik. Would it be possible to use a MATLAB function block instead?...
Simulink - Interpreted Matlab Function: How can I define that I want two inputs to my function?
The Interpreted MATLAB function block only accepts one input afaik. Would it be possible to use a MATLAB function block instead?...
대략 5년 전 | 0
답변 있음
Greek character in script turned to a square or a question mark - any ideas why?
You can refer to this if you want to print greek and other special characters. But I don't think you can have these characters w...
Greek character in script turned to a square or a question mark - any ideas why?
You can refer to this if you want to print greek and other special characters. But I don't think you can have these characters w...
대략 5년 전 | 0
질문
Extremely slow compilation time in referenced model (Simulink)
I have a Simulink model (model1) which has a model reference to model2. Model2 compilation time (checked with sldiagnostics) is...
5년 초과 전 | 답변 수: 1 | 2
1
답변답변 있음
Is there a way of externally defining the initial output of a Variable Transport Delay?
Not sure if I understood the question clearly, but you could simply define a ini_output value in the base workspace: ini_output...
Is there a way of externally defining the initial output of a Variable Transport Delay?
Not sure if I understood the question clearly, but you could simply define a ini_output value in the base workspace: ini_output...
5년 초과 전 | 0
답변 있음
Algebraic state in algebraic loop
You could try adding a Delay block before the input to the derivative block. I don't know if the signal in your actual model i...
Algebraic state in algebraic loop
You could try adding a Delay block before the input to the derivative block. I don't know if the signal in your actual model i...
5년 초과 전 | 0
답변 있음
List of all subsystem(include Model reference) in each layer from model
This could be a starting point: SubsystemsList=find_system('mdlName','SearchDepth',20,'LookUnderMasks','on','FollowLinks','on',...
List of all subsystem(include Model reference) in each layer from model
This could be a starting point: SubsystemsList=find_system('mdlName','SearchDepth',20,'LookUnderMasks','on','FollowLinks','on',...
5년 초과 전 | 0




