Community Profile

photo

VBBV


PEC

Last seen: Today 2017 이후 활성

Programming in MATLAB applied to interdisciplinary engineering fields

Statistics

All
  • MATLAB Central Treasure Hunt Finisher
  • 24 Month Streak
  • Guiding Light
  • Promoter
  • Solver
  • Personal Best Downloads Level 2
  • First Review
  • Thankful Level 5
  • Knowledgeable Level 5
  • Revival Level 3
  • First Answer
  • 5-Star Galaxy Level 1

배지보기

Content Feed

보기 기준

답변 있음
Help with a bifurcation diagram plot
lambda = linspace(0,125,100) xt = linspace(-0.1,5,100)

약 4시간 전 | 0

답변 있음
Index exceeds the number of array elements. Index must not exceed 20. Error in lumped_vortex_parabolic_camber (line 54) dx = xcollocation(i) - xvortex(k);
for i = 1 : 1 : Npanel % change In the first case you used this. But look at the 2nd for loop why you changed to 2*Npanel....

약 6시간 전 | 0

답변 있음
Moving Decimal Places to the right
format long % format long option sprintf('%6f',1.412701202025964e+09)

3일 전 | 0

답변 있음
fprintf with warning of a lone trailing backslash
folderName = strcat(rootFolder,filesep,timeSteps(m+2).name); fprintf(['\nProcessing folder %s', folderName]); You need ...

4일 전 | 1

답변 있음
I dont get why I am encountering an error message when running this code.
%v_t=20; %v_i=1; %g=10; %expo1=-2*g*t./v_t; %expo2=-2*g*t./v_i; %function I want to integrate and plot:v_t*(1-exp(expo1)+v_...

5일 전 | 0

답변 있음
code no good :(
clc,clear all %% Load Data - Initilize Variables DP980TD_S2 = xlsread('DP980TD-S2.xlsx'); % Data File % Constants widthO...

5일 전 | 0

답변 있음
How can I get the value by choosing 't' and 'x'? ,How should I set the graph range?
L = 30; n = 10; T0=500; T1s=300; T2s=400; dx=L/n; alpha=0.000085; t_final=4800; dt=300; % use a coarse timestep ...

6일 전 | 0

답변 있음
Using nested FOR() loops to populate a matrix
% MacLaurin Series of e^x format longG % define vector to hold series x values X = 0 : 0.01 : 1; % Create matrix to co...

6일 전 | 1

| 수락됨

답변 있음
how to write a function for quadratic equation?
if (d>=0) & (~(a==0)) use binary operator &

7일 전 | 0

| 수락됨

답변 있음
Why is my loop not working? "Index exceeds array bounds"
%%%%%% DEFINITIONS %%%%%%% clear Q_lpm=15; Q(1) =(Q_lpm/1000)/60; %m3/s [INPUT] diameter = 0.01; % m [INPUT] t =0.01; % tim...

8일 전 | 0

답변 있음
interpolate (extrapolate?) the values in between two matrices using existing data
A = [1, 2, 3, 4, 5; 0.3654, 0.3634, 0.3663, 0.3665, 0.3677]; B = [16, 17, 18, 19, 20; 0.4653, 0.4636, 0.4652, 0.4620, 0.4715];...

10일 전 | 0

| 수락됨

답변 있음
I'm definitely doing the exponential distribution wrong, am I?
N = 1e4; a=0; b=1; x = (a+(b-a)*rand([N,1])); lambda = 11; % try with different lambda values Y = -log(x)/lambda; figure...

12일 전 | 0

답변 있음
speed up the for and if loop
for i = 1:10:300 % use step increments for j = 1:10:500 for k = 1:1000:17000 if(temp(i,:) > 2) ...

16일 전 | 0

답변 있음
ode45 keeps giving me the error shown below.
a = 0.459; lambda1 = 1.11*10^(-2); %units min^-1 lambda2 = 1.38*10^(-4); %units min^-1 Cp0 = 100; %units nM t = 0:7200; %uni...

16일 전 | 0

| 수락됨

답변 있음
ODE with Newton method
clear all close all n=1001 y0=1; xmin=0; xmax=10; x=linspace(xmin,xmax,n); %grid step=(xmax-xmin)/n; %Step Size yy=zer...

17일 전 | 0

답변 있음
Function output an array
in = [rand(1,15);rand(1,15)]; differences(in) function [out] = differences(in) %This function allows an array input and th...

약 1달 전 | 0

답변 있음
During simulation of mathematical model occuring following error
Use limit output option for selecting integrator saturation limits. May be in your case, its running indefinitely.

약 1달 전 | 0

답변 있음
Using function with a for loop
(factorial(i)).^2) You have two extra parenthesis for this term

약 1달 전 | 0

| 수락됨

답변 있음
Index location of certain dates with find and a loop
locs= zeros(length(TargetDates),length(t_list)); % change preallocated array size Change the preAllocated size of locs locs...

약 1달 전 | 0

답변 있음
why my code is running so slowly in the while loop
clc; clear all; close all; r = 1250; O = [2500 2500] Px = 2500; Py = 1000; P = [ Px Py ]; Va = 100; To = 4; q22 = 0.1 ...

약 1달 전 | 0

답변 있음
Summation of all odd numbers from 1 to 451
n = 451; a = 1; d = 2; S = 0; % Compute S by adding the terms for i = 1:n S(i) = (a+(i-1)*d/2); end sum(S(1:2:end)) ...

약 1달 전 | 1

답변 있음
Implementation of Integral Cost function in Matlab
tspan = [0,1]; x0 = 1; u = 0.1; tau = 1; xn = 1; % noise [time, dxdt, J] = plant_dynamics(tspan,x0,u, tau, xn); subplot...

약 1달 전 | 0

| 수락됨

답변 있음
Problem with filling a variable inside loops
p = readtable ('pnts.txt'); p = table2array(p); x_p=p(:,2); y_p=p(:,3); z_p=p(:,4); t_p=p(:,5); xedges=-100:10:100;...

약 2달 전 | 0

| 수락됨

답변 있음
Numerical solution of PDE with uniform initial condition
clear all clc %% pts = 2^0.1; tmax = 1.76; ti = linspace(0,tmax,50); % give suitable sample size xi = linspace(0,1,50); ...

2달 전 | 1

| 수락됨

답변 있음
Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters. Can anyone help in this error?
M = 1:10; R = 200:300; Mean = mean(M); Range = mean(R) d = 2.326; n = 5; SE = Range./(d*sqrt(n)) % check the parenthesis ...

2달 전 | 0

답변 있음
Iterations outcome summation (accumulation).
x = [4 7 9 11 6 8 13 5 0 2 1 23;14 3 8 0 2 9 7 2 12 17 4 5;0 1 3 4 0 0 7 8 2 5 4 1]; d = 0; iter = 1; for k = 1:size(x,1) fo...

2달 전 | 0

| 수락됨

답변 있음
Arrays have incompatible sizes for this operation.
LeqPrevious = zeros(1,30,2); % array preallocation is not the sme size of Leq LeqPrevious = Leq(i,:,:); % inside the loop Leq...

2달 전 | 0

답변 있음
Solve System of ODEs with Multiple values of a parameter using vectorization but not looping.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%...

2달 전 | 0

| 수락됨

답변 있음
Legend Producing Wrong Colour Lines
x=-5:0.1:5; freal=x.*exp(-x); ftaylor0= 1./exp(x); % they is scalar in your code ftaylor1= 1./exp(-x); % this is scalar in ...

2달 전 | 0

답변 있음
I've tried to make a simulation with matlab but it can't work. especially for the function commands that I have described. I'm not good at matlab. can you help me to check the
clc;clear all;format long; y = [1000 0 0 2000 0]'; [T y]=ode45(@fgliom,[0 200],[10000 0 0 2000 0]',10^-7); [T0 y0]=ode45(@f...

2달 전 | 0

더로드