Community Profile

photo

VBBV


PEC

Last seen: Today Active since 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

View badges

Content Feed

Answered
Index exceeds the number of array elements. Index must not exceed 751.
M(n)=M(n)-(dM*dt);

ungefär 16 timmar ago | 0

Answered
how to solve error using horzcat dimensions of array being concatenated are not consistent
You can transpose the output of ode23 as follows y(j,:)= [i, x(:,1).']; % transpose col matrix plot(y,'r.'); drawnow

en dag ago | 0

Answered
The following error occurred converting from sym to double: Unable to convert expression containing symbolic variables into double array..
syms theta1 theta2 t=[0.01:0.1:10]; l1= 50; l2= 50; l3= 10; dt = 1; x2 = l1*cos(theta1) x3 = l2*cos(theta1+theta2)+ x2;...

en dag ago | 0

| accepted

Answered
Driving force of driven damped harmonic oscillator missing
c0=299792458; %speed of light lase_lambda = 1064e-9; %wavelength lase_freq = c0/lase_lambda; w0 = 2*pi*lase_freq; ...

3 dagar ago | 0

Answered
Analytical Solution of Double Integral in Symbolic Math
syms x a = 2; sol = int(sin(x).*(a.^2*cos(x).^2 + sin(x).^2/a).^(1/2),x,[0,pi]) vpa(sol) % use vpa

3 dagar ago | 0

Answered
Plot title keeps rewriting on top in livescript
close all % add this line at begin x=linspace(0,5,100);

4 dagar ago | 0

| accepted

Answered
polar plot of n^2 = 1+g equation
About the 2nd equation, you can plot it straightforward by plugging values for variables g and theta theta = 0:pi/100:2*pi; % ...

4 dagar ago | 0

Answered
Simulink Port Dimensions Error
M = A.*T + B*Y %

4 dagar ago | 0

Answered
What is wrong here? The equation of a circle given its center
syms x y R e1=(x+1)^2+(y-3.2)^2==R^2; e2=(x+8)^2+(y-4)^2==R^2; e3=(x+6.5)^2+(y+9.3)^2==R^2; result=solve([e1,e2,e3],[x y R])...

4 dagar ago | 0

| accepted

Answered
Animate results from PDE toolbox
M(:,i) = getframe(gcf); % use gcf

4 dagar ago | 0

Answered
how to assign the service time value of the first entity server to the second entity server?
You can try by putting an additional *entity* block between first server and second server. Assign the output of first server to...

5 dagar ago | 0

Answered
Repeat resampling with replacement process several times
res1 = []; res2 = []; centered = rand(170,7) % centerd matrix size:2X7 % cen1=centered(1,:); % cen2=centered(2,:); fo...

5 dagar ago | 0

| accepted

Answered
Why does this code not work?
D =90 ; V = 6.672408424 ; mean_D = 90 ; mean_V = 6.6724 ; sigma_D = 10.29023 ; sigma_V = 0.67708 ; %Now use normrnd functi...

5 dagar ago | 0

Answered
Why is there extra data in my graph?
x =fig.eventsTOP.Event_Type; y = fig.eventsTOP.GroupCount; % bar(x,y)

5 dagar ago | 0

Answered
How to remove a value from a vector in a for loop?
K = setdiff(randi([1 N]),[k]);

6 dagar ago | 1

Answered
how to find out that the length is odd or even
R = 0:0.1:9.1; % example with n = length(R) while 1 % will check the values from 1 to n Nodd = (-1)^n; ...

7 dagar ago | 0

| accepted

Answered
Index exceeds the number of array elements. Index must not exceed 1 error
This function is not returning all Ten variables as defined by fucntion output [TS1,TS2,TS3,TA1,TA2,TA3,H1,H2,H3,area] func...

7 dagar ago | 0

| accepted

Answered
How do I fix the particular error code that I was given for my code?
generateReport(allHurricaneData) % are you calling structure in this way in main script or generateReport(HurricaneData) % ...

7 dagar ago | 0

Answered
solving non linear equations
fc(:,i+1)=subs(fc,[x;y;z],xn) jc(:,i+1)=subs(jc,[x;y;z],xn)

8 dagar ago | 0

Answered
How to put a variable in a legend without it being in the range of the plot?
slope = 3; x = 1:5; y = 6:10; a = 11:15; b = 16:20; slopestr = sprintf('slope is %f',slope) figure(1); plot(x,y); hold o...

8 dagar ago | 0

Answered
Partial derivative with respect to x^2
syms x y z t f= (x^5*y^3+ z^2*x^2+y*x) / (x^3*y+x*y) % t = x^2 % assume x = sqrt(t) F = subs(f,x,sqrt(t)) y = diff(F,t) Y...

8 dagar ago | 0

Answered
access nested struct from excel to matlab
myStruct.d = rand(1,10); % struct with data Par1 = {myStruct}; % nested in cell Data = Par1{1}.d % access data

8 dagar ago | 1

Answered
Output of one table as a value into a new table
TableB.group(j-1,:) = sum(TableA.group(j)); As the error states use *table* as above instead of array

9 dagar ago | 0

| accepted

Answered
user function and plot
May be this change, with regards to returning output variables x1 and x2 since function is not returning both variables as writt...

9 dagar ago | 0

| accepted

Answered
Plot temperature Mean vs time
Use the . symbol to access the variables and markers since you are plotting scalars in the for loop plot(dataStruct.Mean,dataSt...

9 dagar ago | 0

Answered
error: Unable to perform assignment because the size of the left side is 1-by-49 and the size of the right side is 1-by-51 at line 23, where is the problem?
T(Nx,2:Ny-1) = TR(2:Ny-1); T(2:Nx-1,1) = TB(2:Nx-1).'; Vectors TR and TB are of different sizes

10 dagar ago | 0

| accepted

Answered
The stem plot is not shown in the figure
t = 0:0.01:2; % sample points from 0 to 2 in steps of 0.01 xt = sin(2*pi*t); % Evaluate sin(2 pi t) subplot(2,1,1); % Two r...

10 dagar ago | 0

| accepted

Answered
Plotting 2 arrays as bar charts with adjacent bars
A = rand(1,8); B = rand(1,8); bar([1 2 3 4 5 6 7 8],[A;B]); % use concatenation

11 dagar ago | 0

| accepted

Answered
How to use a variable from one for loop in another for loop?
R = [ElmtCentre(:,i);0];

11 dagar ago | 1

| accepted

Answered
plot with two y axis matlab - same axis at 0
yyaxis left plot(Time,LimitedVoltage,'LineWidth',3.0) ylabel("Voltage [V]","FontSize",30,"FontName","Times") ylim([0 10]) % ...

11 dagar ago | 0

Load more