# Maria Galle

Last seen: oltre 3 anni fa Attivo dal 2019

Followers: 0   Following: 0

All

#### Feeds

Visto da

Domanda

why are if statements not working?
%the if statements are not working when I run the code Price=[199.54 195.89 195 192 193.29 197.09 197.78 190.34 189.55 193.30...

oltre 3 anni fa | 2 risposte | 0

### 2

risposte

Domanda

using if statements to find daily stock holding and cash
Suppose you owned 100 shares with no cash over a 17 day period and you bought 10 shares every day the price was below \$193.50 an...

oltre 3 anni fa | 1 risposta | 0

### 1

risposta

Domanda

Plotting 16 plots in one figure using handle graphics
I'm trying to plot 16 plots in one figure window to make a 4x4 grid using handle graphics and NOT using subplot. I'm trying to u...

oltre 3 anni fa | 1 risposta | 0

### 1

risposta

Domanda

Composite Simpson's 1/3 rule code error
I'm trying to use the composite simpsons 1/3 rule but the code is giving me an error message. fx=1-exp(-x); n = 5; x = linspa...

oltre 3 anni fa | 2 risposte | 0

### 2

risposte

Risolto

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

oltre 3 anni fa

Domanda

Fsolve cannot continue error
I keep getting the error Caused by: Failure in initial objective function evaluation. FSOLVE cannot continue. clear va...

oltre 3 anni fa | 1 risposta | 0

### 1

risposta

Domanda

Bisection method code matlab
I'm trying to write a code using the bisection method to find the root but I'm not sure I wrote it correctly. t=4; c_d=0.25; ...

oltre 3 anni fa | 1 risposta | 0

### 1

risposta

Risolto

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.

oltre 3 anni fa

Risolto

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

oltre 3 anni fa

Risolto

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

oltre 3 anni fa

Risolto

Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

oltre 3 anni fa

Risolto

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

oltre 3 anni fa

Risolto

Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

oltre 3 anni fa

Domanda

using fimplicit function to plot
I'm trying to make a plot using the fimplicit function but the figure is empty. zf(1) = figure(1); za(1) = axes; c = -4:2:4; ...

oltre 3 anni fa | 2 risposte | 1

### 2

risposte

Domanda

trying to display a list of numbers
I am trying to display a list of numbers of prime numbers from 1-1000. I tried using a for loop and if else statements. for n...

oltre 3 anni fa | 1 risposta | 0

### 1

risposta

Domanda

getting an empty figure for line plot of sine function
I'm trying to plot a sine function but I'm getting an empty figure x=-10:10; y = (sin(sin(pi*x))) / (pi*x); zf(1) = figure(1)...

oltre 3 anni fa | 1 risposta | 0

### 1

risposta

Domanda

Trying to use a for loop, date commands to calculate date of Memorial day for next 10 years
I'm trying to use a for loop and the date commands to calculate the date of Memorial day for next 10 years. cl = clock; ...

quasi 4 anni fa | 3 risposte | 0

### 3

risposte

Domanda

I am trying to plot but I am getting an empty figure
I am trying to plot but I am getting an empty figure. I am not sure what is wrong with my code. for Tf=32:1:212 p=133.3*exp(2...

quasi 4 anni fa | 1 risposta | 0

### 1

risposta

Domanda

Using 3x3 matrix to create 21x21 matrix
I have built a 3x3 matrix using the code below EA = 1; h = 1; F = @(xi)(xi-0.5).*(xi-0.5) k(1,1) =EA/h* 2*quad(F, -1, ...

oltre 4 anni fa | 1 risposta | 0

### 1

risposta

Domanda

using 3x1 matrix to make 21x1 matrix
I have built the 3x1 matrix below EA = 1; h = 1; P = 1 FF = @(xi) (0.5*xi).*(xi-1) f(1,1) = P*h/2*quad(FF,-1,1) FF ...

oltre 4 anni fa | 1 risposta | 0

### 1

risposta

Domanda

How to create a nxn matrix by using for-end loop?
How do I: Create a n × n matrix of n = 20 by using for-end loop such that the matrix has diagonal elements of a value 2. The el...

oltre 4 anni fa | 1 risposta | 0

risposta