Respondida
How can I save only the values that work?
w = [40+wstep:wstep:50]; k2 = [1:1:100000]; for i = 1:length(m2) X =@(w,k2) abs(((k2-m2(i).*w.^2).*F0)./((k1+k2-m...

casi 6 años hace | 0

| aceptada

Resuelto


Find max
Find the maximum value of a given vector or matrix.

casi 6 años hace

Resuelto


Flip the vector from right to left
Flip the vector from right to left. Examples x=[1:5], then y=[5 4 3 2 1] x=[1 4 6], then y=[6 4 1]; Request not ...

casi 6 años hace

Resuelto


Get the length of a given vector
Given a vector x, the output y should equal the length of x.

casi 6 años hace

Resuelto


Create a vector
Create a vector from 0 to n by intervals of 2.

casi 6 años hace

Resuelto


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

casi 6 años hace

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

casi 6 años hace | 2

| aceptada

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

casi 6 años hace | 0

| aceptada

Respondida
Filtering data in matrices
AA(AA<1|AA>2) = []

casi 6 años hace | 1

| aceptada

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

casi 6 años hace | 0

| aceptada

Resuelto


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

casi 6 años hace

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

casi 6 años hace | 1

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

casi 6 años hace | 1

| aceptada

Respondida
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))

casi 6 años hace | 0

| aceptada

Resuelto


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.

casi 6 años hace

Resuelto


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.

casi 6 años hace

Resuelto


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

casi 6 años hace

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

casi 6 años hace | 0

| aceptada

Resuelto


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

casi 6 años hace

Resuelto


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

casi 6 años hace

Resuelto


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

casi 6 años hace

Resuelto


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

casi 6 años hace

Resuelto


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

casi 6 años hace

Resuelto


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

casi 6 años hace

Resuelto


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

casi 6 años hace

Resuelto


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

casi 6 años hace

Resuelto


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

casi 6 años hace

Resuelto


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]

casi 6 años hace

Resuelto


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

casi 6 años hace

Resuelto


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

casi 6 años hace

Cargar más