Community Profile

photo

Maryam Ansari


Attivo dal 2016

Followers: 0   Following: 0

Statistiche

  • Thankful Level 3

Visualizza badge

Feeds

Visto da

Domanda


Trying to use quad to solve this integral but keep getting error
y = @(x)((1.941-24.3*x).^2)/(2.92*(0.02408-x)*(0.01605-x)); %Using quad to calculate integral time = quad(y,0,0.0120...

circa 8 anni fa | 1 risposta | 0

1

risposta

Domanda


How can I replace my values in an iteration?
This is a code I am using to run the modified secant open method. However, I don't understand why my values are not replacing th...

circa 8 anni fa | 1 risposta | 0

1

risposta

Domanda


How to evaluate a user input function at a given point?
I'm unsure how to evaluate a given function at a given point X. Hypothetically, the user can input any function using any letter...

circa 8 anni fa | 1 risposta | 0

1

risposta

Domanda


Sub function not replacing syms variable x with input number
My code isn't finished yet, but this is what I have function findTaylorSeries = TaylorCos0(valueForX,termNum) %%...

circa 8 anni fa | 1 risposta | 0

1

risposta

Domanda


My loop has an infinite recursion, and I'm not sure how to fix it?
I'm trying to implement the Babylonian method through a while loop. When I call my function in another script file, it says I ha...

circa 8 anni fa | 1 risposta | 0

1

risposta

Domanda


I'm trying to end the program once my variable reaches a certain value. I used a conditional, but my program won't stop?
This is a part of my code. I put my if statement outside the while loop. I don't understand how I can get it to stop once "popul...

circa 8 anni fa | 1 risposta | 0

1

risposta

Domanda


I keep getting index exceeds matrix dimensions but I don't understand why. I'm trying to sum the elements in an array.
Below is a simple code. I'm creating an array m which contains all odd numbers between 1 and 52015. I'm trying to sum all the el...

circa 8 anni fa | 1 risposta | 0

1

risposta