已解决


Vector creation
Create a vector using square brackets going from 1 to the given value x in steps on 1. Hint: use increment.

5 years 前

已回答
Why matlab reading data from csv file completely different ?
The data in 2nd column of your csv file is treated as text since it was not pasted to excel file correctly, See the attached fi...

5 years 前 | 2

| 已接受

已回答
Index in Position 1
%Lab 8 %Jack Philibotte %-------------------- %Polynomial Interpolation x= [15, 20, 25, 30]; y= [1476.77, 1482.19, 1496.69,...

5 years 前 | 0

| 已接受

已回答
Filtering data in matrices
AA(AA<1|AA>2) = []

5 years 前 | 1

| 已接受

已回答
Why is my plot not showing?
%rue clc; close all; clear all; %%Periodic Signal: Parameters A = 6; T = 10; Co = 0; %%Obtain distance between times ...

5 years 前 | 0

| 已接受

已解决


Arrange Vector in descending order
If x=[0,3,4,2,1] then y=[4,3,2,1,0]

5 years 前

已回答
Dynamic uimenu dropdown list in figure tool bar
s_commands = {'!LED1','!LED2','!LEDT1','!LEDT2','!RGBW1','!RGBW2',... '!POSRST','!POSSTR','!NEXT','!SLEEP','!WAKE','!POS','...

5 years 前 | 1

已回答
computing matrix in for loop
l=1; a=0.001; V=1; delta=l/5; for n = 1:5 for m = 1:5 dminus(m,n) = l-delta; dplus(m,n) = l+ delta; if (m==...

5 years 前 | 1

| 已接受

已回答
plotting complex exponential function
t = 5:-0.1:0 ; y = 1*exp(-i*20*pi * t) + (4*exp(i*20*pi *t ) ); plot(t,real(y))

5 years 前 | 0

| 已接受

已解决


Magic is simple (for beginners)
Determine for a magic square of order n, the magic sum m. For example m=15 for a magic square of order 3.

5 years 前

已解决


Sum all integers from 1 to 2^n
Given the number x, y must be the summation of all integers from 1 to 2^x. For instance if x=2 then y must be 1+2+3+4=10.

5 years 前

已解决


Return the first and last character of a string
Return the first and last character of a string, concatenated together. If there is only one character in the string, the functi...

5 years 前

已回答
How to draw line graph with same values in this bar graph?
clear x = [1 2 3 4 5 6 7]; temp_high = [149.1350 143.9020 19.1230 19.0350 11.8150 19.8610 11.6600]; w1 = 0.5; bar(x,temp_h...

5 years 前 | 0

| 已接受

已解决


Solve a System of Linear Equations
*Example*: If a system of linear equations in _x&#8321_ and _x&#8322_ is: 2 _x&#8321;_ + _x&#8322;_ = 2 _x&#8321;...

5 years 前

已解决


Calculate Amount of Cake Frosting
Given two input variables |r| and |h|, which stand for the radius and height of a cake, calculate the surface area of the cake y...

5 years 前

已解决


Calculate BMI
Given a matrix |hw| (height and weight) with two columns, calculate BMI using these formulas: * 1 kilogram = 2.2 pounds * 1 ...

5 years 前

已解决


Calculate a Damped Sinusoid
The equation of a damped sinusoid can be written as |y = A.&#8519;^(-&lambda;t)*cos(2πft)| where |A|, |&lambda;|, and |f| ...

5 years 前

已解决


Convert from Fahrenheit to Celsius
Given an input vector |F| containing temperature values in Fahrenheit, return an output vector |C| that contains the values in C...

5 years 前

已解决


Make a random, non-repeating vector.
This is a basic MATLAB operation. It is for instructional purposes. --- If you want to get a random permutation of integer...

5 years 前

已解决


Getting the indices from a vector
This is a basic MATLAB operation. It is for instructional purposes. --- You may already know how to <http://www.mathworks....

5 years 前

已解决


Swap the input arguments
Write a two-input, two-output function that swaps its two input arguments. For example: [q,r] = swap(5,10) returns q = ...

5 years 前

已解决


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 前

已解决


Reverse the vector
Reverse the vector elements. Example: Input x = [1,2,3,4,5,6,7,8,9] Output y = [9,8,7,6,5,4,3,2,1]

5 years 前

已解决


Length of the hypotenuse
Given short sides of lengths a and b, calculate the length c of the hypotenuse of the right-angled triangle. <<https://i.imgu...

5 years 前

已解决


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 前

已解决


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

5 years 前

已解决


Return area of square
Side of square=input=a Area=output=b

5 years 前

已解决


Maximum value in a matrix
Find the maximum value in the given matrix. For example, if A = [1 2 3; 4 7 8; 0 9 1]; then the answer is 9.

5 years 前

已解决


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 前

已解决


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 前

加载更多