Solved

Determine if input is odd

Given the input n, return true if n is odd or false if n is even.

plus d'un an ago

Solved

Times 2 - START HERE

Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

plus d'un an ago

Solved

Make the vector [1 2 3 4 5 6 7 8 9 10]

In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

plus d'un an ago

Solved

Select every other element of a vector

Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

plus d'un an ago

Solved

Find the sum of all the numbers of the input vector

Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

plus d'un an ago

Solved

Multiply 2 numbers

Very easy, you just have to multiply 2 numbers but you cannot use the following signs (*, /, - ,^) ,mtimes , times, cross, pro...

plus d'un an ago

Answered

Changing data diagonally in matrix based on formula and table

unable to understand what you exactly looking. But this may help you clc clear matrix = [ 1 1 1 0 1 0...

Changing data diagonally in matrix based on formula and table

unable to understand what you exactly looking. But this may help you clc clear matrix = [ 1 1 1 0 1 0...

plus d'un an ago | 1

| accepted

Answered

Merging 2 mat files

clc clear x1 = load('mat_file_1.mat'); x2 = load('mat_file_2.mat'); a = [x1.a;x2.a]; b = [x1.b;x2.b]; c = [x1.c;x2.c];...

Merging 2 mat files

clc clear x1 = load('mat_file_1.mat'); x2 = load('mat_file_2.mat'); a = [x1.a;x2.a]; b = [x1.b;x2.b]; c = [x1.c;x2.c];...

plus d'un an ago | 0

| accepted

Answered

Error plot Bar graph

for using bar function you have to give M-by-N matrix X = randi([1 100],27,2); bar(X)

Error plot Bar graph

for using bar function you have to give M-by-N matrix X = randi([1 100],27,2); bar(X)

plus d'un an ago | 0

| accepted

Answered

Save/Convert large number of figures

clc;clear;close all %% creating fig files (this not required for you) for ii = 1:10 fig1m = figure; plot(1:100,randi([0 10...

Save/Convert large number of figures

clc;clear;close all %% creating fig files (this not required for you) for ii = 1:10 fig1m = figure; plot(1:100,randi([0 10...

plus d'un an ago | 0

| accepted

Answered

unsure about using the hold on funciton

clear clc close all t = 0:0.1:9; N = length(t)-1; y = (-(1.37)*t.^2)+6000; %eqn 1 %Spline Equations %The e...

unsure about using the hold on funciton

clear clc close all t = 0:0.1:9; N = length(t)-1; y = (-(1.37)*t.^2)+6000; %eqn 1 %Spline Equations %The e...

plus d'un an ago | 0

| accepted

Answered

How to plot graph scale?

figure plot3([2953500 2955000],[3805000 3805000],[4150000 4150000],'Linewidth',2),hold on plot3([2955000 2955000],[3805000 380...

How to plot graph scale?

figure plot3([2953500 2955000],[3805000 3805000],[4150000 4150000],'Linewidth',2),hold on plot3([2955000 2955000],[3805000 380...

plus d'un an ago | 0

| accepted

Answered

Implement code for multi range of temperature

I don't know what you are looking exactly. I did something here, please let me know is it correct or you need further help clc;...

Implement code for multi range of temperature

I don't know what you are looking exactly. I did something here, please let me know is it correct or you need further help clc;...

plus d'un an ago | 1

Answered

How do I get the matrix p

Since you are solving with for p, result of 's' equal to 'p' to confirm this, you can use following code (which is same as your...

How do I get the matrix p

Since you are solving with for p, result of 's' equal to 'p' to confirm this, you can use following code (which is same as your...

plus d'un an ago | 0

Answered

how can i plot the following text files?

For plotting combined input 1 and 2 clear, clc, close all; Input1 = load('double_lane_position_lane12k.txt'); Input2 = load...

how can i plot the following text files?

For plotting combined input 1 and 2 clear, clc, close all; Input1 = load('double_lane_position_lane12k.txt'); Input2 = load...

plus d'un an ago | 0

Answered

trouble plotting multiple curves on a graph

There are lot off missing parameters, 'L', 'n', 'ro', 'g', 'E', 'S_FEM' and 'dnew'. for ploting two points you don't need line...

trouble plotting multiple curves on a graph

There are lot off missing parameters, 'L', 'n', 'ro', 'g', 'E', 'S_FEM' and 'dnew'. for ploting two points you don't need line...

plus d'un an ago | 0

Answered

how can i plot the following text files?

Input1 = load('double_lane_velocity_lane1.txt'); Input2 = load('double_lane_velocity_lane2.txt'); figure for ii = 0:49 ...

how can i plot the following text files?

Input1 = load('double_lane_velocity_lane1.txt'); Input2 = load('double_lane_velocity_lane2.txt'); figure for ii = 0:49 ...

plus d'un an ago | 0

Answered

How can I draw a line with arrow head between 2 data points in a plot

t = 1:0.1:10; wo = 1; x = 2*exp(t*wo).*sin(t*wo); plot(t,x),hold on plot([6 6],[-1e5 1e5],'--k','Linewidth',1.4) plot([8...

How can I draw a line with arrow head between 2 data points in a plot

t = 1:0.1:10; wo = 1; x = 2*exp(t*wo).*sin(t*wo); plot(t,x),hold on plot([6 6],[-1e5 1e5],'--k','Linewidth',1.4) plot([8...

plus d'un an ago | 3

Submitted

Shear Force and Bending Moment Diagram for simply supported beam

This Matlab code can be used for finding Support reaction, Maximum Bending Moment, SFD and BMD

plus de 4 ans ago | 15 downloads |

Submitted

Simple Code for Running CSI Sap 2000 from Matlab in Batch mode for finding Natural Frequency

This code help you to adjust material property from matlab to match with actual Natural frequency

plus de 4 ans ago | 10 downloads |

Submitted

FEM 2D Truss Problem

This code may help you to find the displacement and reactions in each element.

plus de 4 ans ago | 4 downloads |

Submitted

FEM Beam problem

This code may help you to calculate the displacement and support reactions of Beam using FEM

plus de 4 ans ago | 11 downloads |

Submitted

Drawing Shape Function of Quadratic element (1D) or Beam element

This code may help you to draw the shape function in Finite Element Analysis

plus de 4 ans ago | 2 downloads |