Community Profile # VBBV

### PEC

Last seen: Today Active since 2017

Programming in MATLAB applied to interdisciplinary engineering fields

#### Statistics

All
• • • • • • • • • • • • #### Content Feed

View by

Integration of a function
syms x f = 3*x-x^2 ; F = int(f,x); expand(F)

en dag ago | 0

Index exceeds the number of array elements (0).
clc; clear all; display('Joint 1'); display('======================='); angle1= 45; %input('Please key in theta_1 (degree):'...

en dag ago | 0

why do I get an error when I pressthe radio button in my GUI

2 dagar ago | 0

GUI Interpolation calculator, Indices exceeds array?
clear i j n guidata(hObject,handles) clear the loop counter variables used inside the callback function every time the GU...

2 dagar ago | 0

| accepted

xlim is not working
xlim([0 20.5]) % difference Difference in using and = between the xlim and parenthesis

2 dagar ago | 0

| accepted

Vectorized iterative summation of matrices
c = subs(a(ix,iy),1,b) c = subs(a(ix-1:ix+1,iy-1:iy+1),1,b) Try these two combinations.

3 dagar ago | 0

Simulation of offshore lift through splash zone.
You can study or start with these examples Model Excavator Tower crane with trolley

3 dagar ago | 0

if-else function statement problem
function abc(day) if day=='monday' % Do a comparison disp('1'); elseif day=='saturday' % Do a comparison disp('2...

4 dagar ago | 0

| accepted

How can i run this script to make a plot for a lot of T
T = 100:10:180; x0 =100.8; xyl_zero = 4; % x0 = rand(1,length(T)) for i = 1:length(T) [t,x] = ode45(@acidpretreatment, [0 2...

4 dagar ago | 0

Matrix Multiplication with Trigonometric Functions
theta1 = pi*2/3; theta2 = 2; A = [-cos(theta1) 0 -sin(theta1) 0.033*cos(theta1); -sin(theta1) 0 cos(theta1) 0.033*sin(t...

4 dagar ago | 0

User defined function in for loop
file=('list of my files') for i = 1:length(file) a=1; b=2; [csv,D] = read_function(i,file{i},a,b);...

5 dagar ago | 0

bar3 color
A = rand(10,20); figure; hc = bar3(A.'); figure; h = bar3(A.'); for ii = 1:length(h) zdata = get(h(ii),'ZData'); ...

5 dagar ago | 0

Plotting 3d bar garphs using bar3
x1=rand(1,10); x2=rand(1,10); x3=rand(1,10); x = [x1; x2; x3]; bar3(x,'grouped') You can use bar3 function with additional ...

5 dagar ago | 0

how to concatenate graphs
Try using subplot command Refer this linke Subplot

5 dagar ago | 0

Unable to perform assignment because the left and right sides have a different number of elements.
tt(:,i+1)=image(x+n(j,1),y+n(j,2)) Change this line to above

6 dagar ago | 1

Matlab Error after executing the code
clear all clc kc=[1 2 3 4 5 6 7 8 9 0]; k12=200; k34=300; new1=1:1:10; for l1=1:length(new1) K(:,:,:,:,l1)=[k12 -k...

6 dagar ago | 0

How to insert dash-line in a matlab figure?
x = 0:360; y = rand(361,1); plot(x,y); ax = gca; ax.YGrid = 'on'; ax.LineWidth = 1.5; set(ax,'GridLineStyle', '-.')

7 dagar ago | 0

how can i get 498 matrices???
n=500; h=1/(n+1); x=linspace(0,1,n+2); t=0:.001:1; for i=2:499 phi(i,:)=BSSpline((t-(i).*h)/h); % use a multidimensional ...

7 dagar ago | 0

Why plotting the first derivative of my function gets shrinked on its amplitud?
x = linspace(-2*pi,2*pi,100); y1 = sin(x); % original equation y2 = diff(y1,1); %1st derivative plot(y1); hold on; plot(y2);...

7 dagar ago | 0

sin function gives straight line when plotting
x = [0:0.1:50]; y1 = 0.25*x.*sin(x); y2 = 0.25*x; y3 = -0.25*x; plot(x,y1,x,y2,'--',x,y3,'--')

7 dagar ago | 0

log and Exponential Equations: logb^300=30, find b)
b = 10^(log10(10)/10) % using decimal log after rearranging the expression bb = exp(log(2.7182)/10) % using natural log after ...

7 dagar ago | 0

plot and surf 3D graph
for Kp = 1:1:3 for tau = 1:1:3 for theta = 1:1:3 for lambda = 1:1:3 %Tuning the con...

7 dagar ago | 0

I need to plot the following script. But it gives an error.
close all clear all %properties of rocks Vs_soil=170; Psoil=1.5; Hs=70; Vs_rock=1000; Prock=2.4; damp=0; %impedan...

8 dagar ago | 2

| accepted

When I run this breast cancer detection code I get "Size inputs must be scalar. " error. How can I solve it ?
hist_data = zeros(size(round(hist_count))); When you use hist_count as dimension for hist_data it takes size values from h...

8 dagar ago | 0

If part of While loop not executing any functions
while PF == isempty(PF) if all(Pact == isempty(Pact)) && and(Pre == isempty(Pre)) break else Papp = s...

8 dagar ago | 0

how to plot a continuous graph in a loop
for k=1:10; x=5; y(k)=2*x-5*k*k*k; plot(1:k,y(1:k),'*'); % use the loop indices to plot in a loop ...

8 dagar ago | 0

| accepted

when i am plotting this conditional for loop program no plot is showing only one dot is showing. Can anyone help me about how to display plot? i am using Matlab 2013..
% conditional x= -5:0.005:15; for k=1:length(x) if x(k)<0 y(k)=sqrt(x(k)^2+1); elseif x(k)<=10 y(k...

8 dagar ago | 0

x=-10:1:10; for i=1:length(x) if x(i)<0 F(i)=3*x(i)^2+5*x(i)-7; else F(i)=3*x(i)+4; end end ...

8 dagar ago | 0