문제를 풀었습니다


Produce a sine wave
Produce a sine wave with amplitude 3: <<http://blogs.mathworks.com/images/seth/cody/sine-eqn.png>>

거의 9년 전

문제를 풀었습니다


Add a block to a model
Produce the following signal: <<http://blogs.mathworks.com/images/seth/cody/add-block-eqn.png>> In this case, the slope of...

거의 9년 전

문제를 풀었습니다


Produce a cosine wave
Produce the following signal: <<http://blogs.mathworks.com/images/seth/cody/cosine-eqn.png>>

거의 9년 전

문제를 풀었습니다


Connect blocks in a model
Connect the blocks in the model to produce the following signal: <<http://blogs.mathworks.com/images/seth/cody/connect-blocks...

거의 9년 전

답변 있음
Plotting a unit step function without heaviside.
You are very close to the first half of your goal. Your line of code Ut= unitstep+unitstep2+unitstep3; should, I beli...

대략 9년 전 | 0

답변 있음
[num,den]=series(n1,d1,n2,d2,n3,d3); please tell me that in this line which error??
As the documentation linked to by Star Strider indicates, series is meant to connect *_two_* models. So you will need to call t...

대략 9년 전 | 0

| 수락됨

답변 있음
Switch depend on time
Use the Clock block for the current simulation time and a Switch block to compare the time to your desired switch time. This ...

대략 9년 전 | 3

| 수락됨

답변 있음
What is the possible code that can be used to return to primary while?
Use 'break'

대략 9년 전 | 0

답변 있음
uigetfile, load m-file variables into workspace
.m files are used to store Matlab code - NOT data. You can create data in your workspace by *_running_* an m file but not b...

대략 9년 전 | 1

답변 있음
Cannot read properly with fscanf a file configuration.in
For your specific example, I would just change the extension of the file to .m and run it. Your example is valid Matlab m code....

9년 초과 전 | 0

답변 있음
What proportion of students failed the course (i.e., got a mark of less than 50)?
How did you calculate it and why do you think that it is wrong?

9년 초과 전 | 0

답변 있음
how retain value of variable in memory between calls to the function?
I think what you need is to define the variable(s) that need to be retained as 'persistent' inside your function. Check the doc...

9년 초과 전 | 1

답변 있음
Range Theta from 0 to 2Pi and plot
Change the divide in your equation for reflectedPerpendic to an element-by-element divide as follows: reflectedPerpendic = ...

9년 초과 전 | 1

| 수락됨

답변 있음
How to save 'display-iter' from fmincon to a .txt file?
Getting back to the original question about capturing the output to a text file, I would simply use 'diary' instead of an Output...

거의 10년 전 | 0

| 수락됨

답변 있음
I have a problem when opening Matlab window
It appears that you have created a script called 'feature' (C:\Users\abapihi\Documents\MATLAB\feature.m). feature is a built-...

거의 10년 전 | 0

답변 있음
Moving points on a graph?
If you search the Matlab File Exchange for 'game of life' you will find many implementations of a predator/prey 'simulation' tha...

대략 10년 전 | 0

답변 있음
How I can plot current against voltage in the same scope screen?
Scope blocks can only plot signals against time. Try the XY Graph block instead.

10년 초과 전 | 0

| 수락됨

답변 있음
Is it possible to use previous time step when I use Clock Block in simulink.
Try feeding the clock output through a unit delay block to get the time at the previous simulation step. You should also set yo...

10년 초과 전 | 0

질문


Find common files in two directories
I've got a script that I'm using to make comparison plots using data from two different sets of simulation runs. The data is st...

10년 초과 전 | 답변 수: 2 | 0

2

답변

질문


Powershell script doesn't work when called from Matlab
I have a Powershell script that works when called from the command line (Windows 7) but not when called using the system command...

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

1

답변

문제를 풀었습니다


Conversion from hours to mili sec
Convert given input in hours to mili seconds

10년 초과 전

답변 있음
How to define a struct variable like in C with Matlab
To pass signals that act like a C struct in a Simulink model you need to use 'bus' signals. Check the documentation.

대략 11년 전 | 0

문제를 풀었습니다


De-dupe
Remove all the redundant elements in a vector, but keep the first occurrence of each value in its original location. So if a =...

대략 13년 전

문제를 풀었습니다


Elapsed Time
Given two date strings d1 and d2 of the form yyyy/mm/dd HH:MM:SS (assume hours HH is in 24 hour mode), determine how much time, ...

대략 13년 전

문제를 풀었습니다


Quote Doubler
Given a string s1, find all occurrences of the single quote character and replace them with two occurrences of the single quote ...

대략 13년 전

문제를 풀었습니다


Sort a list of complex numbers based on far they are from the origin.
Given a list of complex numbers z, return a list zSorted such that the numbers that are farthest from the origin (0+0i) appear f...

대략 13년 전

문제를 풀었습니다


Swap the first and last columns
Flip the outermost columns of matrix A, so that the first column becomes the last and the last column becomes the first. All oth...

대략 13년 전

문제를 풀었습니다


Determine whether a vector is monotonically increasing
Return true if the elements of the input vector increase monotonically (i.e. each element is larger than the previous). Return f...

대략 13년 전

문제를 풀었습니다


The Goldbach Conjecture
The <http://en.wikipedia.org/wiki/Goldbach's_conjecture Goldbach conjecture> asserts that every even integer greater than 2 can ...

대략 13년 전

문제를 풀었습니다


Remove the vowels
Remove all the vowels in the given phrase. Example: Input s1 = 'Jack and Jill went up the hill' Output s2 is 'Jck nd Jll wn...

대략 13년 전

더 보기