문제를 풀었습니다


Select every other element of a vector
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

거의 14년 전

문제를 풀었습니다


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:...

거의 14년 전

답변 있음
Is there a simulation speed difference between subsystem and model block? and What's the best way to set and handle parameters?
Q1 - Model blocks are specifically designed to improve componentization of parent model and directly results in speed improvemen...

거의 14년 전 | 0

| 수락됨

답변 있음
Simulink simulation
Check out <http://blogs.mathworks.com/seth/2010/06/22/how-to-customize-the-simulink-scope this> blog post that talks about custo...

거의 14년 전 | 0

답변 있음
converting cell of strings in arry or cell of numbers
STR2NUM requires a single string to work on. You need to loop around the individual cell elements and use STR2NUM. CELLFUN is a ...

거의 14년 전 | 0

답변 있음
And function in While loop
As is the case with any programming language, MATLAB evaluates the second operand of an AND operation only when the first operan...

거의 14년 전 | 0

답변 있음
Find
Try making the input strings as part of a cell array. Then use STRFIND or STRCMP which will return a logical array of comparison...

거의 14년 전 | 0

답변 있음
y=x(100:1000)
Matrix indexing - this <http://www.mathworks.com/company/newsletters/articles/Matrix-Indexing-in-MATLAB/matrix.html;jsessionid=S...

거의 14년 전 | 0

답변 있음
Create and name a directory
You should be creating customized strings using concatenation and passing those strings to mkdir. Current folder name could be o...

거의 14년 전 | 1

답변 있음
Why would a Simulink disabled block still be executed?
The MATLAB Fcn block will be executed once before simulation to determine what the dimensions of the output will be. This will h...

대략 14년 전 | 0

답변 있음
Getting the signal names from a bus.
How about the output signal names? I think the selector block gets the information even during edit time - you might need to com...

대략 14년 전 | 0

답변 있음
Out of memory - opening a big file
The <http://www.mathworks.com/support/tech-notes/1100/1107.html tech note> provides some general guidelines for handling out of ...

대략 14년 전 | 0

답변 있음
Dynamic Input File Name Recognition
I'd strongly recommend using <http://www.mathworks.com/help/techdoc/matlab_prog/f0-42649.html Regular Expressions> for such pars...

대략 14년 전 | 0

답변 있음
Simulink missed some of the time values during simulation?
The time steps chosen by Simulink depends on the type of solver (and the system that is being solved) that you have chosen. You ...

대략 14년 전 | 0

답변 있음
Matlab function block
As long as you do not care about code generation, you should be able to call any function in the MATLAB path. Refer to the <http...

대략 14년 전 | 0

답변 있음
selcting 3 values from top 10 values
A good place to start is <http://www.mathworks.com/help/techdoc/math/f1-85462.html Matrix Indexing>. One way of achieving this: ...

대략 14년 전 | 0

답변 있음
Improving accuracy of computation
I recommend reading <http://blogs.mathworks.com/loren/2006/08/23/a-glimpse-into-floating-point-accuracy/ Loren's post> on this t...

대략 14년 전 | 0

답변 있음
Different SNR value - blockset
In general, you could use a <http://www.mathworks.com/help/toolbox/simulink/slref/foreach.html For Each subsystem> inside Simuli...

대략 14년 전 | 0

| 수락됨

답변 있음
Anything wrong with this PWM generation model?
I see that you changed the solver and zero-crossing settings and presume you have read through the various <http://www.mathworks...

대략 14년 전 | 0

답변 있음
Function capability in Matlab
The argument list to the function should be the variable names themselves and not a string (within quotes) of the variable name....

대략 14년 전 | 1

| 수락됨

답변 있음
How to: Make a simulink block to read in a data file?
I am not aware of a block in Simulink that can read from a normal ASCII file (you could potentially write your own Level-2 MATLA...

대략 14년 전 | 0

답변 있음
how can i solve this problem about 'OUT OF MEMORY'
There is an excellent resource on understanding how MATLAB uses memory and how you can avoid out of memory issues - <http://ww...

대략 14년 전 | 1

답변 있음
MATLAB Simulink communication in real time
One way to tune the parameter based on a change in a variable in the MATLAB workspace is to 'update' the model while it is still...

대략 14년 전 | 4

| 수락됨

답변 있음
How to detect frequency of a sinusoidual signal with s-function?
Provided you are not interested in generating code from the resulting Simulink model, <http://www.mathworks.com/help/toolbox/sim...

14년 초과 전 | 0

답변 있음
polyfit and code generation
The <http://www.mathworks.com/help/toolbox/signal/br7exek-1.html list of supported functions> doesn't seem to suggest that POLYF...

14년 초과 전 | 0

답변 있음
Error with dynamically created m-files
This is because there is no guarantee that there is a refresh of your file path and your new file may or may not be picked up. A...

14년 초과 전 | 0

| 수락됨

답변 있음
Fitting a Gamma distribution with threshold parameter: error message?
The error points to the MINUS operator. It appears that the variables x and n (and hence pEmp?) have the same dimensions and par...

14년 초과 전 | 0

| 수락됨

답변 있음
making a text figure
TEXT usually lives under $matlabroot\toolbox\matlab\graph2d\text - if you do not find it there, I'd re-install MATLAB.

14년 초과 전 | 0

답변 있음
Look up table for a dynamics problem
One way to do this would be to create a MAT file with the data (there are some interpolation functions to generate the data auto...

14년 초과 전 | 0

답변 있음
Bus in Simulink
I am suspecting that you created a Simulink.BusElement, assigned it as element to a Simulink.Bus and used the Simulink.Bus objec...

14년 초과 전 | 0

더 보기