photo

engineer101


Last seen: mer än 4 år ago Active since 2021

Followers: 0   Following: 0

Statistics

MATLAB Answers

2 Questions
0 Answers

RANK
189 507
of 300 343

REPUTATION
0

CONTRIBUTIONS
2 Questions
0 Answers

ANSWER ACCEPTANCE
50.0%

VOTES RECEIVED
0

RANK
 of 20 926

REPUTATION
N/A

AVERAGE RATING
0.00

CONTRIBUTIONS
0 Files

DOWNLOADS
0

ALL TIME DOWNLOADS
0

RANK

of 168 149

CONTRIBUTIONS
0 Problems
0 Solutions

SCORE
0

NUMBER OF BADGES
0

CONTRIBUTIONS
0 Posts

CONTRIBUTIONS
0 Public Channels

AVERAGE RATING

CONTRIBUTIONS
0 Highlights

AVERAGE NO. OF LIKES

  • Thankful Level 1

View badges

Feeds

View by

Question


How to store an initial value in an array. x should start at 0 and y should start at 1. The step size is 0.25. I do not know how to store my initial x and y values in the array.
clear;clc syms x syms y f(x,y)= (1+2*x)*sqrt(y) h = 0.25; x_array = zeros(1,5); %array of x y_array = zeros(1,5); %a...

mer än 4 år ago | 1 answer | 0

1

answer

Question


I am lost. I need to be able to show the iterations to find the root with given a and b values. Values for a and b should be user inputted. Convergence tolerance of abs(b-a) < 0.0001. fprint used to output the results from each iteration.
clc; close all; f= @(x)x.^3 + 12*x.^2 - 100*x -6; a = -1.0; b = 0.0; tol=0.0001; err=abs(b-a); if f(a)*f(b)>0 disp...

mer än 4 år ago | 1 answer | 0

1

answer