photo

johnmurdock


Aktiv seit 2019

Followers: 0   Following: 0

Statistik

  • Thankful Level 1

Abzeichen anzeigen

Feeds

Anzeigen nach

Frage


How would I ask the user to input another option for cash flow and interest rate, then compare the two or three additional options?
clc; clear; close all; numberYears= input('Planning Horizon Length\n--> '); cashflows = zeros(numberYears, 1); for k = 1...

mehr als 5 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


I keep getting this error in my code
Code: y = 0.2; t = 0; h = 0.01; tn = 0.2; kfv = [30 20 40]; for Kidx = 1 : length(kfv) kf = kfv(Kidx); %we assu...

mehr als 5 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


How do I prompt a user to input a number of values for their future inputts?
So right now, the code I have makes the user input up to an infinite number of values for the cash flow matrix and the intrest r...

mehr als 5 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How do I add additional values for k into the function?
clear; clc; close('all'); y = 0.2; t = 0; h = 0.01; tn = 0.2; [t, y] = Euler(t, y, h, tn); function [t, y] = Euler(t0, ...

mehr als 5 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How do I output to the command window where the sum of the bars on the graph equal zero along the x axis
clc; clear; close all; A= -15000; A(2:6)= 3200; A(7:9)= [2133.333, 1066.667, 1000]; n=length(A); for i =1:n ...

mehr als 5 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How can I solve a truss system using a system of linear equations in a function?
I am confused on how to use the bisection method to solve for F with AC being 4000N. Bisection method example: function [ ...

mehr als 5 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


How do I add a curve fitted plot to this code?
clc clear close all xls=xlsread("Exam2_Data.xls"); t=xls(:,1); y=xls(:,2); SST=sum((y-mean(y)).^2); for i=1:3 ...

mehr als 5 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Curve fit the given data set with an appropriate polynomial function
clear clc A=xlsread('Data.xls'); t=A(:,1); y=A(:,2); SST=sum((y-mean(y)).^2); for i=1:3 fprintf('For %d order fit\n\n',i)...

mehr als 5 Jahre vor | 0 Antworten | 0

0

Antworten