Respondida
ERROR Subscript indices must either be real positive integers or logicals.
for j=2:j_max+1 x=v((j-1:j+N0-2)*dt); Use a positive non zero integer subscripts. In your case it is zero

más de 5 años hace | 0

| aceptada

Respondida
Index loop into matrix
triCoord= zeros(10,9); ntri = 10 qTop = zeros(ntri,3); for n=1:ntri qTop(n,:) = [mean(triCoord(n,[1 4 7])),mean(triCoord(n...

más de 5 años hace | 0

| aceptada

Respondida
How can I plot graphs of the following variables?
%Program to solve the Euler equations clear all; clc; %Time Step h = 0.01; %Key Parameters mb = 100; %Mass of Quarter ...

más de 5 años hace | 0

| aceptada

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

más de 5 años hace | 0

| aceptada

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

más de 5 años hace | 0

| aceptada

Resuelto


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

más de 5 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 ...

más de 5 años hace

Resuelto


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

más de 5 años hace

Resuelto


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

más de 5 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.

más de 5 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...

más de 5 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,...

más de 5 años hace | 0

| aceptada

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

más de 5 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 ...

más de 5 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]

más de 5 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','...

más de 5 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==...

más de 5 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))

más de 5 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.

más de 5 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.

más de 5 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...

más de 5 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...

más de 5 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;...

más de 5 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...

más de 5 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 ...

más de 5 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| ...

más de 5 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...

más de 5 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...

más de 5 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....

más de 5 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 = ...

más de 5 años hace

Cargar más