Answered
bWhat is the outcome of the MATLAB command disp4==4-10^-21
format longg 4-10^-21

7 years ago | 0

Answered
How do I save the input data from 'inputdlg' as a value as opposed to a 1x1 matrix?
p = str2double(inputdlg('Enter max truncation error'));

7 years ago | 0

| accepted

Answered
How to get the column number that have ones in a row?
same like your previous question use: idx=find(t(8,:,1)==1) ind2sub(size(t),idx)

7 years ago | 1

| accepted

Answered
To get the row and column of element in a matrix.
[idx,idy]=find(ismember(t(:,:,1),43)); result=[idx idy]

7 years ago | 1

Answered
pythagorean theorem to find distance between two points
Read about hypot()

7 years ago | 0

Answered
How to get the column and vector of 2nd ones in a matrices?
[idx,idy]=find(ismember(t(:,:,2),97)); t(idx,idy,2)=1

7 years ago | 1

| accepted

Answered
How do you plot a function on an xy graph that consists of both x and y components?
w_divded_by_g = 0.3 beta = [0:1:5] x=[0:10:50]; y=[0:10:50]; T = (w_divded_by_g) .* sqrt(sind(x - beta) + sind(y - beta)) p...

7 years ago | 0

Answered
Get the last 5 column for 1st row
t(1,size(t,2)-5:size(t,2),1)

7 years ago | 0

| accepted

Answered
Can anybody help me with this exercice ?
C/O

7 years ago | 0

Answered
How do I get the live editor to not plot the same thing twice?
See section break in live editor just divide the particular code by selecting it and click section break , later on you can j...

7 years ago | 0

| accepted

Answered
Indices and Filling Vectors
repmat(t,1,5)

7 years ago | 1

Answered
getting error when used ginput
[row,column]=ginput(1)

7 years ago | 0

| accepted

Answered
Plot a system of ODE, not against time
plot(x(:,1),x(:,3))

7 years ago | 1

| accepted

Answered
drawing a function graph. Find the stationary points of the function and examine the quality of the function
1)probably differentiate the equation and solve for x , if your talking about local extremas 2)substitute the solution points u...

7 years ago | 0

Answered
calculating a curve and the area of the x-axis bounded by 0.5 <x <5
declare the equation as symbolic like your previous question and use int() to integrate the equation with 0.5 as the lower limit...

7 years ago | 0

Answered
How to plot a graph with two different length vectors
Use linspace to create points with equal instances Entropy_Value =[7.61572,7.56676,6.25456,5.45656,7.32154]; % Y-axis values I...

7 years ago | 1

| accepted

Answered
Drawing a curve and solve the equation using the newton method
syms x f= sin(x)^2+x-1; fplot(f) see https://www.mathworks.com/matlabcentral/answers/262497-newton-s-method-function-output#a...

7 years ago | 0

Answered
Calculating a function and drawing a graph
syms x f=sin(x)/(x^2+1); fplot(f) derivative=diff(f,x) derivative_when_x_equals_one=double(subs(derivative,x,1))

7 years ago | 1

| accepted

Answered
Error Undefined function or variable
function graph999 %main function f1=gcf(); x0=str2double(char(inputdlg('Enter x0','Enter parametr',2,{'0'},'on'))); if ...

7 years ago | 0

| accepted

Answered
assemble global stiffness matrix
result=blkdiag(k1,K2)

7 years ago | 0

| accepted

Answered
how to plot the results of consequent runs in one graph?
use hold on after plot command inside loop

7 years ago | 0

| accepted

Answered
Find difficult in solving these four coupled ODE's using ODE45....I have attached a file regarding these equations..
a=0.5179; b=1.1003E-3; c=0.4576; d=1; hstress=3463.46; Hstar=0.7846; Kc=0.1137; tspan=0:0.01:40; initial_condit...

7 years ago | 0

| accepted

Answered
How to run a script on Matlab?
just type sample %in command window and press enter see https://www.mathworks.com/help/matlab/matlab_prog/create-scripts.htm...

7 years ago | 0

| accepted

Answered
Solving a non-linear equation
syms C V = 100; sigma = 0.15; r = 0.06; alpha = 0.5; tau = 0.35; X = (2.*r)./sigma.^2; m = (((1-tau).*X./(r.*(1+X))).^X)...

7 years ago | 0

| accepted

Answered
How do I convert a cell into numeric array?
[W{:}] %at the end where W is your 1 by 300 cell array %or cell2mat(W) %or horzcat(W{:}) %or vertcat(W{:})

7 years ago | 0

| accepted

Answered
How can I write a symbolic vector function n(q, w) as c(q, w)*w + g(q)?
see anonymous functions str2func()

7 years ago | 0

Load more