Solved


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

mer än 5 år ago

Solved


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

mer än 5 år ago

Solved


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

mer än 5 år ago

Solved


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

mer än 5 år ago

Solved


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

mer än 5 år ago

Solved


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

mer än 5 år ago

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

mer än 5 år ago | 0

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

mer än 5 år ago | 1

Answered
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

mer än 5 år ago | 0

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

mer än 5 år ago | 0

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

mer än 5 år ago | 0

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

mer än 5 år ago | 0

| accepted

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

mer än 5 år ago | 0

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

mer än 5 år ago | 0

| accepted

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

mer än 5 år ago | 0

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

mer än 5 år ago | 0

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

mer än 5 år ago | 0

| accepted

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

mer än 5 år ago | 1

| accepted

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

mer än 5 år ago | 0

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

mer än 5 år ago | 0

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

mer än 5 år ago | 1

| accepted

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

mer än 5 år ago | 0

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

nästan 6 år ago | 0