A résolu


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

plus de 5 ans il y a

A résolu


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

plus de 5 ans il y a

A résolu


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

plus de 5 ans il y a

A résolu


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

plus de 5 ans il y a

A résolu


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

plus de 5 ans il y a

A résolu


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

plus de 5 ans il y a

Réponse apportée
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...

plus de 5 ans il y a | 0

Réponse apportée
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...

plus de 5 ans il y a | 1

Réponse apportée
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

plus de 5 ans il y a | 0

Réponse apportée
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 ...

plus de 5 ans il y a | 0

Réponse apportée
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 ...

plus de 5 ans il y a | 0

Réponse apportée
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...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
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 ...

plus de 5 ans il y a | 0

Réponse apportée
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...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
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*...

plus de 5 ans il y a | 0

Réponse apportée
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...

plus de 5 ans il y a | 0

Réponse apportée
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:...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 5 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 5 ans il y a | 0

Réponse apportée
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...

plus de 5 ans il y a | 0

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

plus de 5 ans il y a | 1

| A accepté

Réponse apportée
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 ...

plus de 5 ans il y a | 0

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

presque 6 ans il y a | 0