Gelöst


Draw 'I'
Given n as input, draw a n-by-n matrix 'I' using 0 and 1. example: n=3 ans= [0 1 0 0 1 0 0 1 0] n=...

mehr als 5 Jahre vor

Gelöst


Draw 'E'
Draw a x-by-x matrix 'E' using 1 and 0. (x is odd and bigger than 4) Example: x=5 ans= [1 1 1 1 1 1 0 0 0 0 ...

mehr als 5 Jahre vor

Gelöst


Draw 'F'
Draw a x-by-x matrix 'F' using 1 and 0. (x is odd and bigger than 4) Example: x=5 ans= [1 1 1 1 1 1 0 0 0 0 ...

mehr als 5 Jahre vor

Gelöst


Draw 'H'
Draw a x-by-x matrix 'H' using 1 and 0. (x is odd and bigger than 2) Example: x=5 ans= [1 0 0 0 1 1 0 0 0 1 ...

mehr als 5 Jahre vor

Gelöst


Draw a 'Z'.
Given _n_ as input, generate a n-by-n matrix like 'Z' by _0_ and _1_ . Example: n=5 ans= [1 1 1 1 1 0 0 0 1 ...

mehr als 5 Jahre vor

Gelöst


Draw 'O' !
Given n as input, generate a n-by-n matrix 'O' using 0 and 1 . example: n=4 ans= [1 1 1 1 1 0 0 1 ...

mehr als 5 Jahre vor

Gelöst


Draw a 'X'!
Given n as input Draw a 'X' in a n-by-n matrix. example: n=3 y=[1 0 1 0 1 0 1 0 1] n=4 y=[1 0 0...

mehr als 5 Jahre vor

Gelöst


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

mehr als 5 Jahre vor

Gelöst


Are all the three given point in the same line?
In this problem the input is the coordinate of the three points in a XY plane? P1(X1,Y1) P2(X2,Y2) P3(X3,Y3) how can...

mehr als 5 Jahre vor

Gelöst


Calculate the area of a triangle between three points
Calculate the area of a triangle between three points: P1(X1,Y1) P2(X2,Y2) P3(X3,Y3) these three points are the vert...

mehr als 5 Jahre vor

Gelöst


Celsius to Fahrenheit converter
Convert Celsius to Fahrenheit degrees.

mehr als 5 Jahre vor

Gelöst


Triangle Numbers
Triangle numbers are the sums of successive integers. So 6 is a triangle number because 6 = 1 + 2 + 3 which can be displa...

mehr als 5 Jahre vor

Gelöst


Column Removal
Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2 3; 4 5 6]; ...

mehr als 5 Jahre vor

Gelöst


Pizza!
Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...

mehr als 5 Jahre vor

Gelöst


Is my wife right?
Regardless of input, output the string 'yes'.

mehr als 5 Jahre vor

Gelöst


Factorial Numbers
Factorial is multiplication of integers. So factorial of 6 is 720 = 1 * 2 * 3 * 4* 5 *6 Thus 6 factorial = factorial(720)....

mehr als 5 Jahre vor

Gelöst


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

mehr als 5 Jahre vor

Gelöst


03 - Matrix Variables 3
Make the following variable: <<http://samle.dk/STTBDP/Assignment1_3c.png>> A 10x10 matrix where the numbers from 1 to 100 ...

mehr als 5 Jahre vor

Gelöst


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

mehr als 5 Jahre vor

Beantwortet
How do i create a colormap that seperates ranges between exact values?
Try something like this, custom colormap with 5 colors. mymap = [0 0 0 1 0 0 0 1 0 0 0 1 1 1 1]; surf(...

mehr als 8 Jahre vor | 0

Beantwortet
How to plot Poincare map and Bifurcation diagrams of ferrosonance
For bifurcation diagram: Run the system for particular values of the parameter and store the time series. Change one of the pa...

mehr als 8 Jahre vor | 2

Beantwortet
summation of two different loops
If the vectors generated are of same size then you can add them. It is not clear what you mean by loop. Do you mean for loops. w...

mehr als 8 Jahre vor | 0

Beantwortet
Problem in copying figure in MATLAB 2014b
have you tried this eval(['print -dmeta nameofyourfile.emf']);

etwa 11 Jahre vor | 0

Beantwortet
How to construct image from a .dat file?
what does your dat file contain. did you try imagesc option. import the dat file into matlab and store as a variable. ...

etwa 11 Jahre vor | 0

Beantwortet
How can I store scores in txt file by fprintf?
since you want it in text format why dont you use dlm write. If suppose you want to save a particular variable say S use fo...

etwa 11 Jahre vor | 0

Beantwortet
Importing specific rows of Data from Text file
I dont know if this would help. when i looked at your sensor data the first column consisted of strings while remaining columns ...

etwa 11 Jahre vor | 0

Beantwortet
How do I use a for-loop to do fft and plot the power?
HI, Try this and let me know. for a= 0:4 A=fft(Be(a*1000:(a+1)*1000)); A(1)=[]; ...

etwa 11 Jahre vor | 0

Beantwortet
How can I plot only certain values from an array?
just another method. This is round about way and will actually take more time to execute. j=1; for i=1:length(a)...

etwa 11 Jahre vor | 0

Beantwortet
How to plot from certain range of data?
Did you try the following x=Scope1(:,1); y=Scope1(:,3); plot(x,y) xlim([10 20]) More easier option wo...

etwa 11 Jahre vor | 0

Mehr laden