Resuelto


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

más de 5 años hace

Resuelto


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

más de 5 años hace

Resuelto


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

más de 5 años hace

Resuelto


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

más de 5 años hace

Resuelto


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

más de 5 años hace

Resuelto


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

más de 5 años hace

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

más de 5 años hace | 0

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

más de 5 años hace | 1

Respondida
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

más de 5 años hace | 0

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

más de 5 años hace | 0

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

más de 5 años hace | 0

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

más de 5 años hace | 0

| aceptada

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

más de 5 años hace | 0

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

más de 5 años hace | 0

| aceptada

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

más de 5 años hace | 0

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

más de 5 años hace | 0

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

más de 5 años hace | 0

| aceptada

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

más de 5 años hace | 1

| aceptada

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

más de 5 años hace | 0

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

más de 5 años hace | 0

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

más de 5 años hace | 1

| aceptada

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

más de 5 años hace | 0

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

más de 5 años hace | 0