Solved


Concatenate input positive integers to obtain a maximum.
Input some integers, you need to concatenate them to obtain a maximum integer. Neither use library function "perms" to list all ...

4 years ago

Solved


add one to x

4 years ago

Solved


decipher the number 1 - same key for all digits :)
You will be given a input number (eg) x=12345 you have to figure out the dechiper key and match it with given input and deciph...

4 years ago

Solved


Logic 2

4 years ago

Solved


Ohmic Heating

4 years ago

Answered
To Create mean squared error as a Function handle for input to genetic algorithm
targetMatrix=50*rand(1250,5); predictedOutput=50*rand(1250,5); mse=@(t,p)mean((t-p).^2,'all'); MSE=mse(targetMatrix,predicted...

4 years ago | 0

| accepted

Answered
How to create a vector based on another vector in a for loop?
Vp=0:.2:4; A=5; u=Vp/A;

4 years ago | 0

Solved


Rotate matrix by coloumns

4 years ago

Answered
How can I multiply each row of 3 matrices individually?
sum(x.*rij*ai)- Kj*y(:,1)<=0;%want to add columns (delete ,2)

4 years ago | 0

Answered
Different variable multiplication for different columns in a MATRIX
a=randi(10,5,10); b=a.*([ones(1,5)*2,ones(1,5)*3]);

4 years ago | 0

Answered
Nonscalar arrays of function handles are not allowed; use cell arrays instead.
Why use symbolic and convert? fun=@(x)[x(1)+x(2);x(1)*x(2)+5]; x=fsolve(fun,[0,1]);

4 years ago | 0

Answered
How to generate this Matrix ?
a=16*rand(7); a(1)=1;a(49)=1; a(randperm(47,2)+1)=[0,16];

4 years ago | 0

Answered
repeated addition of a singular number
s=0; for k=1:1000 s=s+.0001; end

4 years ago | 0

Answered
Binary to Base_10
a='1100111.1101'; b=regexp(a,'[.]','split'); A=sum(flip(b{1}-'0').*(2).^(0:length(b{1})-1))+sum((b{2}-'0').*(2).^-(1:length(b{...

4 years ago | 0

| accepted

Answered
exporting figures as vector graphics without white spacing
x=1; m=[1,2]; bar(x,m); exportgraphics(gcf,'myplot.png','Resolution',300)

4 years ago | 0

Answered
How do you plot two vectors starting from different points
Year=[2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010]; X=[1 2 1 4 5 6 7 2 3 5 6]; Y=[12 3 4]; plot(Year,X,Year(5:7),Y...

4 years ago | 0

| accepted

Answered
How to find coordinates of non-zero elements of matrix (not their Linear Indices)?
[row,col]=find(M1>0);

4 years ago | 0

| accepted

Answered
Unsure how to correctly index variables in a while loop to ensure interp1() has unique points.
Did you inspect M? is the matrix M consistent in its columns? You could try readmatrix() and see if there is any difference. Att...

4 years ago | 0

| accepted

Answered
Remove a row based on its value
X = [1:10]' Y = [1:10]' H = [1, 0, 0 , 0, 2, 3, 4, 0 , 0, 4]' Location = [X,Y,H]; Location(Location(:,3)<1,:)=[];

4 years ago | 0

| accepted

Answered
Input argument "U" is undefined.
U=1:3;%setup variable [u,x1,x2]=fpendolo(U);%call function function [u,x1,x2]=fpendolo(U) u=U(1); x1=U(2); x2=U(3);...

4 years ago | 0

Answered
How can I add a column at the start of my vector/Matrix?
C=[0,C];

4 years ago | 0

| accepted

Answered
How do I calculate mean absolute error?
x_T = 0.3; y_T = 0.3; %A_T = 38:0.1:45; have no idea what you are doing with A_T (it is not in your equation) [x,y]=meshgrid(x...

4 years ago | 0

| accepted

Answered
Try and Catch for multiple conditions
if condition1 %do elseif condition2 %do elseif condition3 %do elseif condition4 %do elseif condition5 ...

4 years ago | 0

Answered
squaring values in a matrix
[(3:2:201);zeros(1,100);(1:100).^2];

4 years ago | 0

Answered
Anonymous Functions - how to store the results of anonymous functions
for u_t = U belBar=applyPredictionUpdate(bel, u_t); sensorReading=readSensor(); bel=applyMeasurementUpdate(sensorReadin...

4 years ago | 1

| accepted

Load more