문제를 풀었습니다


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

대략 5년 전

문제를 풀었습니다


Add two numbers
Given a and b, return the sum a+b in c.

대략 5년 전

문제를 풀었습니다


Find all elements less than 0 or greater than 10 and replace them with NaN
Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN. Example: Input ...

대략 5년 전

문제를 풀었습니다


Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

대략 5년 전

문제를 풀었습니다


Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

대략 5년 전

문제를 풀었습니다


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

대략 5년 전

답변 있음
How do I create a button that switches to another tab of a GUI?
You can try the code below. I’ve used uibutton in place of uicontrol since there is no 'ButtonPushedFcn' property on the UIContr...

대략 5년 전 | 0

답변 있음
How can I save a figure as an EPS file without white margins?
You can go through the following link. It explains in detail how to save a figure with minimal white space: https://www.mathwor...

대략 5년 전 | 1

답변 있음
Unable to perform assignment because the size of the left side is 1-by-1 and the size of the right side is 1-by-14.
P9 might be of size 1x14 but you're assigning z (of size 1x14) to P9(1,i) which is of size 1

대략 5년 전 | 0

답변 있음
Using relational operator as a function input
If it’s the condition you want to pass, you could always pass it as a string or a character array and then parse it to get the ...

대략 5년 전 | 0

답변 있음
How to align and wrap labels according to perspective of 3D figure
You can rotate the axis labels by setting properties 'XTickLabelRotation' and 'YTickLabelRotation' for the axes(try rotating by ...

대략 5년 전 | 0

답변 있음
With the MATLAB Compiler, why is the installer produced when I select Runtime Include in package smaller than the size of the MATLAB Runtime installer itself?
Possible explanation for this might be: Starting R2015b, you can separate the core(Full installation of MATLAB Runtime) and GPU...

대략 5년 전 | 0

| 수락됨

답변 있음
stacked two columns of four in bar3
From what i understand,each time bar3 is called, plotting starts from the beginning.So calling bar3 twice-one for the unstacked ...

대략 5년 전 | 0

답변 있음
Unit Advance Block in Simulink (Opposite of Unit Delay Block)
Opposite of unit delay is unit prediction and there is no way to predict a signal unless simulation is done up to that point. On...

대략 5년 전 | 0

| 수락됨

답변 있음
find the differences between two funtions
You can try the following code: g=46e9; b=0.2556e-9; nu=0.33; zi=0.155e-9; y=1e-8; x=2e-9:1e-10:2e-7; v=@(x) g*b/(2*pi*...

대략 5년 전 | 0

답변 있음
using menu() function to calculate time differences
There's a mistake in the 5th line of you code.You're using == .You need to use =. Also,you need to have the first assignment to...

대략 5년 전 | 0

답변 있음
Using 'doc' on overloaded/overridden classes: Help only shows the Matlab class documentation
I don't think there's any quick way to do this .If you go through the 'Description' section of the documentation for doc- https:...

대략 5년 전 | 0

| 수락됨

답변 있음
Timing belt pulley (Simulink)
Yes.Timing belts can be modelled and analyzed.Two pulley blocks connected together can be used to model the belt and the tooth i...

대략 5년 전 | 1

| 수락됨

답변 있음
SVN: New Files do not show up
This might have something to do with the refreshing of files and file statuses.To resolve this you can take a look at the follow...

대략 5년 전 | 0

답변 있음
How can you use Application Compiler to build an app for a target OS that is different from the one you are building on?
Please go through the following link: Create Standalone Application from MATLAB "MATLAB Compiler produces an installer that in...

대략 5년 전 | 0

답변 있음
Creating a counting vector for "wins"
A simple solution: totalgames = 100; odd_wins = zeros(1,totalgames); even_wins = zeros(1,totalgames); %% special case ...

대략 5년 전 | 1

| 수락됨

답변 있음
Installing error: cannot find the files specified
You can go through the accepted answer in the following link: Why did My MATLAB installation fail, with the following error in ...

대략 5년 전 | 0

답변 있음
unable to launch matlab
Please refer to this link - https://www.mathworks.com/matlabcentral/answers/106141-why-am-i-continuously-prompted-to-activate-wh...

대략 5년 전 | 0