Community Profile

photo

johnmurdock


Con actividad desde 2019

Followers: 0   Following: 0

Estadísticas

  • Thankful Level 1

Ver insignias

Feeds

Ver por

Pregunta


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

casi 5 años hace | 0 respuestas | 0

0

respuestas

Pregunta


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

casi 5 años hace | 0 respuestas | 0

0

respuestas

Pregunta


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

casi 5 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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

casi 5 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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

alrededor de 5 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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

alrededor de 5 años hace | 0 respuestas | 0

0

respuestas

Pregunta


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

alrededor de 5 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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

alrededor de 5 años hace | 0 respuestas | 0

0

respuestas