Question

How to use fimplicit with a symbolic function

I have a symbolic function r and am trying to plot it using fimplicit but I keep on getting an error in Matlab. I have tried swi...

6 months ago | 1 answer | 0

Question

Assigning values to variables "Method" and "Value"

Hi all. I am working on a problem where I have three saved functions: Mid, Trap, and Simp. These functions are used to approxima...

6 months ago | 1 answer | 0

Question

Using multiple integration methods in one script

Hi, I have to calculate an integral using the midpoint, trapezoid, and simpson's methods. I already have the functions stored in...

6 months ago | 1 answer | 0

Question

Why is my fplot not working?

My fplot is not working in my code. A few minutes ago, the code was plotting the graph just fine, but now it isn't. I can't figu...

6 months ago | 0 answers | 0

Question

Why isn't my first line being plotted?

On this quiz, I have to graph two lines and only f1 is showing up on my graph. The first graph is supposed to have 100 points be...

6 months ago | 1 answer | 0

Question

Problems with averages and storing values

For a school project, I have to estimate the average number of swaps required to sort a random list of numbers. I have to do thi...

6 months ago | 3 answers | 1

Question

How to get answers to appear as an array?

I have a word that I switched to ASCII code. I then used a loop to make the resulting numbers change to the numbers that I want....

6 months ago | 1 answer | 0

Answered

How do I get my X array to cycle through the code?

%Part 2: Estimating the average number of swaps required to sort %a random list of numbers count=0; for X=[100:100:1000] num...

How do I get my X array to cycle through the code?

%Part 2: Estimating the average number of swaps required to sort %a random list of numbers count=0; for X=[100:100:1000] num...

7 months ago | 0

| accepted

Question

How to change ASCII values?

I have an assignment where I have to take a phrase, capitalize it, and use the 'double' command to change all of the letters to ...

7 months ago | 2 answers | 0

Question

How do I get my X array to cycle through the code?

I have an array X=[100 200 300 400 500 600 700 800 900 1000]. But throughout my code the X value only equals 1000. I need to hav...

7 months ago | 1 answer | 0

Question

How to prevent addition from showing up in command window

I ran some code and am having trouble with the results of the code come out like this: 995 996 997 998 999 1000 How do I ...

7 months ago | 2 answers | 0

Question

Calling a function from a script

I'm trying to call a function from a script, but everything that I have seen and read on how to do so has not been helpful. Woul...

7 months ago | 1 answer | 0

Question

Why is N not being displayed?

My problem: I am trying to find the smallest value of N for which error is less than 10^-4. I am just wondering why N is not bei...

7 months ago | 2 answers | 0

Question

Problems with min and max functions

I am currently doing a project where I have to make x and y equal to 100 random numbers, and then find the max and min of both x...

7 months ago | 1 answer | 0

Question

How to "call" a function

For my matlab class, we have to "call" a function. However, the video that was shown to us only shows how to call functions with...

7 months ago | 1 answer | 0

Question

For loop not calculating properly

My instructions are to calculate the result and absolute error for each partial sum: N = 10, 160, and 640. I am supposed to be g...

7 months ago | 1 answer | 0

Question

Problem with if statement

I am trying to create code that says that if any number in an array of 100 numbers (y) is less than two, then count increases by...

7 months ago | 1 answer | 0

Question

Finding a number in an array less than 2

I'm trying to find a count of all the numbers in an array that are less than 2. I set up my code like this: (y was already def...

7 months ago | 2 answers | 0

Question

How to tell if a random 3x3 Matrix is invertible

I have to produce a random 3x3 matrix A that is invertible and display it. I have a couple questions: How do I know when a matr...

7 months ago | 1 answer | 0

Question

Calculating results for Partial Sums

My question is: Calculate the result and absolute error for each partial sum: N = 10, 160, and 640. You should use for-loops an...

7 months ago | 1 answer | 0

Question

How to get a script to only give me the number of elements less than 2?

I have a script in which y equals 100 various numbers. I was able to sort the numbers in order from least to greatest, but I nee...

7 months ago | 2 answers | 0

Question

How to use fprintf properly?

Here is the question: Write a script that does the following. Use fprintf and do not show scientific notaiton. NOTE: You will...

7 months ago | 2 answers | 0

Question

How do I add words onto strings? (Original string is blank but words are added if certain numbers from 1-20 are divisible by 2, 3, 5, or neither. At the end, each number is supposed to have a name)

Original string is blank but words are added if certain numbers from 1-20 are divisible by 2, 3, 5, or neither. At the end, each...

7 months ago | 1 answer | 0