Answered
Solve the a,b,c,d,e and f from the simultaneous equations below:
Read about solve() and vpasolve() syms a b c d e f e1=-2*a+5*b+c+3*d+4*e-f==0 e2=2*a-b-5*c-2*d+6*e+4*f==1 e3=-a+6*b-4*c-5*d+...

7 years ago | 0

| accepted

Answered
How to end the running of a script in a subfunction?
function... input('just press control + c to stop script') end

7 years ago | 0

Answered
how can i see the steps in ref and rref.
Answer is you cannot.

7 years ago | 0

Answered
counter odd numbers in 'randi'?
a=randi([0 27],1,50); b=zeros(1,numel(a)*3+numel(a)); b(4:4:end)=a; b(rem(b,2)~=0 & ~isprime(b))

7 years ago | 0

Answered
Height vs Time Plot with Variable
% G_20_tanksim1: Method 1 %Extra Parameters tf = 72; %h h0 = 2 ; %m % Solve the DAE opts = odeset('Re...

7 years ago | 1

| accepted

Answered
i want my value become constant to variable
Use element wise operation that is put dots before arithmetic operations like shown below: xp= -160-(ref1.*119./tan(thetap)); ...

7 years ago | 0

| accepted

Answered
how can you know the vector from a workspace file ?
size(variable) -> if any dimension is 1 then the variable is a vector

7 years ago | 0

| accepted

Answered
How to write a Equation of summation in Matlab
cumsum() or symsum()

7 years ago | 0

| accepted

Answered
Importing a list of tuples genrated in python to MATLAB
matrix=load('mytext.txt')

7 years ago | 0

Answered
How to exit a for loop when only return has been done with no input data?
point(i,:)=input('Enter a point [x y]: ','s') % ^--^----include this if isempty(...

7 years ago | 0

| accepted

Answered
How can I convert colon to real scalar?
syms r4; t1=3;t2=5; %fake datas because you didn't provide the values and your question was vague at the beginning L=6; r2=3...

7 years ago | 0

Answered
I cant get this matlab function to work.
EDITED You should call the function properly with input T like shown below: T=[3 8] %example Rblas4=arco(T) %functi...

7 years ago | 1

| accepted

Answered
Questions about producing text file with data
Format writetable()

7 years ago | 0

Answered
Numerical integral of sin(x)/x from 0 to inf
y=@(x)sin(x)./x integral(y,0,inf)

7 years ago | 0

Answered
how to fix the error ''Conversion to function_handle from double is not possible.'' for the below matlab code
Use .* ./ and .^ when you have function handle A = @(x) -Gms.*x1./norm(x).^3; %change this line

7 years ago | 1

| accepted

Answered
How to save values into .csv file column by column then row by row?
Basically you don't need a loop at all percent = (total / length(tiffs))*100; fileName2 = 'percentage.csv'; ...

7 years ago | 0

Answered
How to make a vector shorter ?
a = [1,5,2,3,4,7,10,9] [value,index]=max(a) a(index)=[]

7 years ago | 2

| accepted

Answered
How to evaluate an array filled with symbolic integrals?
Numerical integration is faster compared to symbolic integration. See matlabFunction() to convert symbolic expressions to functi...

7 years ago | 0

Answered
how i can bulid this algorithm if In the case of achieving the condition becuse it doesnot work
change your lines to this if (thd<=threshould)&&(i>=0.5); disp('no fault') elseif (thd>threshould)&&(i>=0.5...

7 years ago | 0

Answered
Generating random 50 number between 0 to 27 and padding 000 all side?
a=randi([0 27],1,50) padarray(a,[1,1],0) % requires image processing toolbox

7 years ago | 1

| accepted

Answered
load function "error: no such file, '...'"
Try to directly put the .mat file in the working folder and then just load the file using it's name alone.

7 years ago | 0

Answered
Need help with an integral with variable bounds
syms x y %example f = @(t) sin(t) Nf = int(f,x,y) i = 1:35040; x = (1/(24*4))*(i-1); y = (1/(24*4))*i; r...

7 years ago | 0

| accepted

Answered
Finding t that a max/min occurs at
[value,index]=max(f) t(index) [value,index]=min(f) t(index)

7 years ago | 0

Answered
How to solve a differential equations?
syms t y a= t.*y+t.^2.*sin(t); diff(a,y)

7 years ago | 0

Answered
The entries in tspan must strictly increase or decrease. ode45 Issues
tspan= t(1):dt:t(end);

7 years ago | 0

Answered
Legend in several columns
https://www.mathworks.com/help/matlab/ref/legend.html#bt6r30y

7 years ago | 4

| accepted

Answered
How to display all values from the for loop in one variable
Z= [x1 x2 x3 x4 x5 x6 x7]; %size(Z)= 400 7; m=cell(size(Z,1),size(Z,2)); %PREALLOCATION for speed and efficiency for i=...

7 years ago | 0

Answered
Solve a system of equations having variables as a arrays
syms x y %where x is x(1) and y is x(2) change it throughout the code you will get the result after solving for x and y define ...

7 years ago | 0

Answered
Why does changing the order of my multiplication yield different graphs?
a*b~=b*a % don‘t forget the rules of matrix multiplication change * to .* element wise operation you will get the same result

7 years ago | 0

| accepted

Load more