Solved


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

5 years ago

Solved


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

5 years ago

Solved


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

5 years ago

Solved


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

5 years ago

Solved


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

5 years ago

Solved


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

5 years ago

Solved


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

5 years ago

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

5 years ago

Solved


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

5 years ago

Solved


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

5 years ago

Solved


Celsius to Fahrenheit converter
Convert Celsius to Fahrenheit degrees.

5 years ago

Solved


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

5 years ago

Solved


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

5 years ago

Solved


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

5 years ago

Solved


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

5 years ago

Solved


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

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

5 years ago

Solved


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

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

5 years ago

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

8 years ago | 0

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

8 years ago | 2

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

8 years ago | 0

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

11 years ago | 0

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

11 years ago | 0

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

11 years ago | 0

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

11 years ago | 0

Answered
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)=[]; ...

11 years ago | 0

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

11 years ago | 0

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

11 years ago | 0

Load more