A résolu


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

plus de 5 ans il y a

A résolu


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

plus de 5 ans il y a

A résolu


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

plus de 5 ans il y a

A résolu


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

plus de 5 ans il y a

A résolu


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

plus de 5 ans il y a

A résolu


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

plus de 5 ans il y a

A résolu


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

plus de 5 ans il y a

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


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

plus de 5 ans il y a

A résolu


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

plus de 5 ans il y a

A résolu


Celsius to Fahrenheit converter
Convert Celsius to Fahrenheit degrees.

plus de 5 ans il y a

A résolu


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

plus de 5 ans il y a

A résolu


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

plus de 5 ans il y a

A résolu


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

plus de 5 ans il y a

A résolu


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

plus de 5 ans il y a

A résolu


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

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


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

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

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

plus de 8 ans il y a | 0

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

plus de 8 ans il y a | 2

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

plus de 8 ans il y a | 0

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

environ 11 ans il y a | 0

Réponse apportée
I have 32x32 matrix...But I want to make this a 512x512 matrix with the same element as in the 32x32 matrix..and the rest of which would be zero in 512x512 matrix.. how do i do it??
A=32x32 matrix B=zeros(512) for i= 1:32 for j=1:32 B(i,j)=A(i,j) end end try this

environ 11 ans il y a | 0

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

environ 11 ans il y a | 0

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

environ 11 ans il y a | 0

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

environ 11 ans il y a | 0

Réponse apportée
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)=[]; ...

environ 11 ans il y a | 0

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

environ 11 ans il y a | 0

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

environ 11 ans il y a | 0

Charger plus