Question

How to download numbers times of command window

Hello, I made code in Matlab on the Ronga method and plot graph. So i get of command window time (t = 0:h:60) is bothers me and...

12 days ago | 0 answers | 0

Question

How to produce line plot yline for matlab R2018a

Hello, My computer has R2018a old version software, I do not have time to download it. I want to add in the graph a line in y=...

18 days ago | 3 answers | 0

Question

How to find value from vector

Hello, After calculation gammadot that need locate in table_gammadot (I tried "ismember" is no help), so to get table_eta that ...

20 days ago | 1 answer | 0

Question

How to arrange correctly with a graph

Hello, I want to produce a graph using ode45,But it gives me an error. Thanks for the helpers function second_oder_ode h...

21 days ago | 1 answer | 0

Question

How to take a given value from a table in a function?

Hello, For example I have a table given I calculate a=y/l , For example a=y/l=2 so i need to get g=0.2. If i get a=y/l=1 (...

24 days ago | 1 answer | 0

Question

How to fix in Gauss formula

Hello, I have here two formulas of Jacobi and Gauss. I wrote code in the method Jacobi and it worked for me, but in Gauss t...

1 month ago | 1 answer | 0

Question

How to reset typing in loop input if is Negative?

Hello, I want to make a typo refund if there is a user error with negative. For example if a user types negative then the outpu...

1 month ago | 1 answer | 0

Question

How to reset typing in loop input?

Hello, I want to make a typo refund if there is a user error. For example if a user types a zero or empty matrix then the outpu...

1 month ago | 1 answer | 0

Question

How to fix a matrix error

Hello, I created a matrix and during there is an error, what was my mistake here. Thanks for the helpers n=4; f=4*ones(1,n...

1 month ago | 1 answer | 0

Question

How to combine two matrices

Hello, I want matrix d to go into matrix A. Thanks in advance n=4 A = 4*diag(ones(n^2,1)) - diag(ones(n^2-1,1),-1) - diag(on...

1 month ago | 1 answer | 0

Question

How to arrange correctly with a loop

Hello, I have created a matrix and need to get a result of a vector using by the Gauss Diesel method. This gives me an error...

2 months ago | 1 answer | 0

Question

How to create a graph time vs value n

Hello, I have a function that we enter a value n. Next I designed a matrix here and it measures time (tic,toc) until vector ret...

2 months ago | 2 answers | 0

Question

How to make a loop until the same result is obtained

Hello, I need help how to be used correctly in the loop, I have here a parameter table. Example: I have k that place in the eq...

2 months ago | 1 answer | 0

Question

How to to take a value positive of equation

Hello, This equation solves two solutions and I want to take a value x2 positive (solutions is -7.6272 and 11.6272). I tried t...

2 months ago | 1 answer | 0

Question

How to solve an equation

Hello, I have a function equation and it is difficult to set it to the value x. If is there a matlab in which I enter numbers ...

2 months ago | 1 answer | 0

Question

How to change exponentiation

Hello, I want to change exponentiation from ^-5 to ^-6 and too format but will that 2. The command window is dense how can to d...

2 months ago | 2 answers | 0

Question

How to insert numbers into a empty vector in a loop

Hello, I have a function and I want to insert sqra(5,5) that i I will get results of x and counter. How to put all these resu...

2 months ago | 2 answers | 0

Question

How to order matrix

Hello :) I want to arrange in a matrix, for example that's what I got in the software of command window The strain tensor is ...

2 months ago | 2 answers | 0

Question

How to do input correctly

clc; clear; Metal=input('Choose a metal material:'); if Metal==AISI1020 else S_y=427; G=80,000; v=0.29; E=207,000 if Me...

2 months ago | 1 answer | 0

Question

How to place and download in a loop?

Hello everyone, I have a number of boxes that I need to store them in a storage area (1X10), number 1 Its boxes inside cell...

2 years ago | 0 answers | 0

Solved

Product of Each Column

Given a matrix |mat| with |n| columns, return a row vector |v| of length |n|, where every element in |v| is the product of the |...

2 years ago

Question

How to multiply each element separately from row first to next row in matrix?

Hello, I want to multiply elements in the first row to the next row within the matrix to get a vector ( *without Prod() funct...

2 years ago | 2 answers | 0

Solved

Diagonal Pattern

For a positive integer |n|, return an |nXn| matrix |mat| such that the value of each element in row |i| and column |j| is given ...

2 years ago

Solved

Making change

Given an amount of currency, return a vector of this form: [100 50 20 10 5 2 1 0.5 0.25 0.1 0.05 0.01] Example: Input a = ...

2 years ago

Solved

Find the average of a random sequance

Write a function that generates random integers within a loop, and calculates the mean of the positive numbers only. At each ...

2 years ago

Solved

Remove the air bubbles

Given a matrix a, return a matrix b in which all the zeros have "bubbled" to the top. That is, any zeros in a given column shoul...

2 years ago

Solved

How many Integers?

Count the integers in a given vector |v|. You *must* use a loop to count each element separately. Examples: Input: v...

2 years ago

Solved

Triangle of numbers

Create a matrix with the integers from 1 to |n| arranged in a triangular shape. Every row |i| of the matrix contains |i| inte...

2 years ago

Question

A triangular creation in a matrix with the rest zeros

I want to write a code which does the following: Say its input is 'n = 12' to create a matrix arranged triangularly with t...

2 years ago | 1 answer | 0

Solved

Tax Calculator

Calculate the tax for a given income. 10% tax is paid for any income up to $2,000. 20% tax is paid for additional income u...

2 years ago