Réponse apportée
Index exceeds the number of array elements (0).
%true prompt= 'Enter theta1 value'; A = input(prompt); prompt = 'Enter phi1 value'; B = input(prompt); prompt= 'Enter ...

plus de 5 ans il y a | 0

| A accepté

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

plus de 5 ans il y a | 0

| A accepté

A résolu


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

plus de 5 ans il y a

A résolu


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

plus de 5 ans il y a

A résolu


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

plus de 5 ans il y a

A résolu


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

plus de 5 ans il y a

A résolu


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

plus de 5 ans il y a

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

plus de 5 ans il y a | 2

| A accepté

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

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
Filtering data in matrices
AA(AA<1|AA>2) = []

plus de 5 ans il y a | 1

| A accepté

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

plus de 5 ans il y a | 0

| A accepté

A résolu


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

plus de 5 ans il y a

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

plus de 5 ans il y a | 1

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

plus de 5 ans il y a | 1

| A accepté

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

plus de 5 ans il y a | 0

| A accepté

A résolu


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.

plus de 5 ans il y a

A résolu


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.

plus de 5 ans il y a

A résolu


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

plus de 5 ans il y a

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

plus de 5 ans il y a | 0

| A accepté

A résolu


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

plus de 5 ans il y a

A résolu


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

plus de 5 ans il y a

A résolu


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

plus de 5 ans il y a

A résolu


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

plus de 5 ans il y a

A résolu


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

plus de 5 ans il y a

A résolu


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

plus de 5 ans il y a

A résolu


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

plus de 5 ans il y a

A résolu


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

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


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]

plus de 5 ans il y a

A résolu


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

plus de 5 ans il y a

Charger plus