문제를 풀었습니다


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

거의 12년 전

문제를 풀었습니다


Determine if input is odd
Given the input n, return true if n is odd or false if n is even.

거의 12년 전

문제를 풀었습니다


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

거의 12년 전

문제를 풀었습니다


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

거의 12년 전

문제를 풀었습니다


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

거의 12년 전

문제를 풀었습니다


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

거의 12년 전

답변 있음
Generate 251 experiment noise data (mnoise) which follow a normal distribution with mean 0 and standard deviation of 0.02. (Use command “randn”).
The function <http://www.mathworks.com/help/releases/R2013b/matlab/ref/randn.html |randn|> assumes a standard normal distributio...

대략 12년 전 | 0

답변 있음
what should you do to add additional coins in this image?
What are the constraints on the problem? Do you want to detect coins, copy them, and insert them into the image or do you just w...

대략 12년 전 | 0

답변 있음
need function to compute iterations of element in matrix
One approach is to create a logical matrix for the input by comparing it to the target value. You can then sum a row, column, or...

대략 12년 전 | 1

| 수락됨

답변 있음
whats the meaning of these question? " Subscripted assignment dimension mismatch."
This error occurs when the dimensions of the array resulting from the assignment expression do not match the explicitly defined ...

대략 12년 전 | 4

| 수락됨

답변 있음
Plotting 3 variables of a single function
<http://www.mathworks.com/matlabcentral/fileexchange/764-sliceomatic Sliceomatic> on Matlab file exchange is a useful tool for t...

대략 12년 전 | 0

답변 있음
Why I can draw lines on the Axes but can't draw lines anymore after imshow a picture on Axes?
|OutputToComputer_Callback| may be called before |continue_pencil|. You should initialize |handles.coord| in your opening functi...

대략 12년 전 | 0

답변 있음
How do I name a file from part of the file name read in?
The function <http://www.mathworks.com/help/matlab/ref/strsplit.html |strsplit|> will split a string into parts based on a delim...

대략 12년 전 | 0

| 수락됨

답변 있음
user defined equation fit to a dat a set
The <http://www.mathworks.com/help/releases/R2013b/curvefit/fit.html fit function> can use custom non-linear models. <http://www...

대략 12년 전 | 1

| 수락됨

답변 있음
will "if exist('a','var') && a == 2" always work, without throwing an exception?
All of these approaches will throw an error if |a| is not a numeric array, logical array, character array, or categorical array....

대략 12년 전 | 1

답변 있음
Matlab executable crash/error - missing dll??: IESHIMS.ddl and MCLMCRRT7_15.dll
Has MATLAB Compiler Runtime 7.15 been installed on the deployment machines? The MCR version must match the compiler version used...

대략 12년 전 | 0

답변 있음
How to save multiple varibles from the function into the workspace?
You can return multiple variables from a function using the function definition syntax: function [ out1 , out2 , out3 ] =...

대략 12년 전 | 0

답변 있음
How to Crop an Image
The function |imcrop| returns a matrix. You are trying to store this matrix as a single element of an array. This is not possibl...

대략 12년 전 | 1

답변 있음
plot tools:add data color
If you want to make the line black at the time of plotting, add the argument |'k'| to the plot command. Example: figure;...

대략 12년 전 | 0

| 수락됨

답변 있음
plotting the number of actions for ex i=i+1 ( action), pgd=n/i ( action), pgd=n(action)
You can create a variable to count the number of actions taken and increment it every time an action is take. Have your function...

대략 12년 전 | 0

답변 있음
Quiver always come on top !!!!
You can fiddle with the z values of the patch to change whether it appears on top. Z values larger than 1 will usually make the ...

대략 12년 전 | 0

답변 있음
Pointer Setting for identifying time of corresponding data
Let's see if I have your situation right. Your measurements are stored in a 9450x10 matrix where each row is a row correspond...

대략 12년 전 | 0

| 수락됨

답변 있음
How to store the co-ordinates of a pixel in an array?
Assuming that by the first 10 pixels, you mean the first 10 in column major order, <http://www.mathworks.com/help/releases/R2013...

대략 12년 전 | 1

답변 있음
Designing a lowpass filter with lesser filter coefficients with the required parameters
This <http://www.mathworks.com/help/dsp/examples/designing-low-pass-fir-filters.html example article> gives a great run down of ...

대략 12년 전 | 0

답변 있음
Procrustes with dcm2angle: sign error?
The function <http://www.mathworks.com/help/releases/R2013b/stats/procrustes.html |procrustes|> allows reflection by default. If...

대략 12년 전 | 0

답변 있음
how can I change the distance between the axis and their title?
A title is a text object. You can change the position of any text object by using <http://www.mathworks.com/help/releases/R2013b...

대략 12년 전 | 1

답변 있음
is it possible to detect repeated values in a matrix?how?
This can be done using <http://www.mathworks.com/help/releases/R2013b/matlab/ref/hist.html hist> and <http://www.mathworks.com/h...

대략 12년 전 | 1

| 수락됨

답변 있음
Issue with updating xlabel/ylabel
Check if the xlabel string is a cell array when you retrieve it. If it is a cell, then the code: xoffset = blah...

대략 12년 전 | 1

| 수락됨

답변 있음
unable to plot graph as well as form a table as it is taking only last value of the loop,plz help me in this particular matter as i ve my submission on coming friday
The code for generating the table and printing it to a file is correct, but the variables |y|, |ud|, and |taub| are all scalars....

대략 12년 전 | 0

| 수락됨

답변 있음
how to call multiple binary images in for loop?
A <http://www.mathworks.com/help/releases/R2013b/matlab/ref/cell.html cell array> would be your best bet. Read each image in and...

대략 12년 전 | 0

더 보기