# Abolfazl Chaman Motlagh

**Statistics**

RANK**334**

of 258.068

REPUTATION**208**

CONTRIBUTIONS

**0** Questions

**74** Answers

ANSWER ACCEPTANCE **
0.00%
**

VOTES RECEIVED**22**

RANK

of 17.783

REPUTATION**N/A**

AVERAGE RATING**0.00**

CONTRIBUTIONS**0** Files

DOWNLOADS **0**

ALL TIME DOWNLOADS**0**

CONTRIBUTIONS**0 Posts**

CONTRIBUTIONS**0** Public Channels

AVERAGE RATING

CONTRIBUTIONS**0** Highlights

AVERAGE NO. OF LIKES

**Content Feed**

How to display a 2D square as a 3D cube

Use volshow function : thisSlice = dicomread('IMG-0004-00079.dcm'); thisSlice = double(thisSlice); thisSlice = (thisSlice-min...

2 meses ago | 1

| accepted

Image Compression: How to use blockproc function with dct2 inside

you created DCT_Trans function for blockprop . it's a function which takes structure as input. if you pass structure S to it's i...

2 meses ago | 0

Fitting multiple data sets to single curve in least square sense

the nlinfit function take a vector as second input y, because it's cost function for optimization and regression is based on sca...

2 meses ago | 0

Why am I getting this error? Local function name must be different from the script name.

Name of your live script is project.mlx and name of your local function within it is also project which leads to error. try diff...

3 meses ago | 0

How do I use the besselj function?

The function besselj(nu,x) is in fact two variable function as . you put v(i) and z(i) simultaneously with same index in argum...

3 meses ago | 1

| accepted

Solved

Sums of cubes and squares of sums

Given the positive integers 1:n, can you: 1. Compute twice the sum of the cubes of those numbers. 2. Subtract the square...

3 meses ago

Solved

Digital Neighbourhood

Given a natural number reorder its digits to create another number, closest to the given one. Examples: * 123 gives 132, ...

3 meses ago

select ROI, threshold it and remove small objects - App designer

about the first problem: you overwrite the app.Icrop on app.I every time the slider changes. so after first time, it goes comp...

3 meses ago | 1

| accepted

Asking for user input of numbers and letters.

if the plate (variable) could have both number and latters, deal with them like string. for getting input as string you need ext...

3 meses ago | 1

plotting delta function in zero interpolation and decimation

the problem you are adressing is that n and m are 1x100 vector each. so the term (n-m*L) is 1x100 array. and it means h1 and h2 ...

3 meses ago | 0

| accepted

Recursive Least Squares Estimation for Dynamic Systems in Real time

The first time rlsupdate is called the value of P,phi are set to eye(2) and 0. in the line 15 of code you have inverse of eye(1)...

3 meses ago | 0

Can my code be written in a more efficient way?

if clearvars are not important, this is exactly equal to what you're doing: % Specify participant folder DotFolder = [Folder '...

3 meses ago | 0

| accepted

Getting error in ode 45

you put ode45 and plot in your ode function. try this : (all in one script) [t,c] = ode45(@odefun1,[0 10],[1;0;0]); plot(t,c(:...

3 meses ago | 0

All the possible path between two points without repetition

You can solve this problem with your data as a matrix, or as a graph. the matrix make it easier i guess: a traditional method w...

3 meses ago | 1

| accepted

How to create a rectangle to locate a zooming area in a plot?

in first axes use function rectangle. y_min = min(Ly_orb.JacobiConstant(indexOfInterest)); % need indexofInterest for this y_m...

3 meses ago | 1

| accepted

Write a MATLAB script to find the multiplies of the even numbers of any 𝑁 × 𝑀 matrix entered by the user?

Matrix = randi(100,7,5) multip = prod(Matrix(~rem(Matrix,2)))

3 meses ago | 0

Find the optimal state and optimal control based on minimizing the performance index

your cost_function doesn't return a scalar. it should return one number for every input. it seems that x is a 1xn vector. and u...

3 meses ago | 0

How to find area enclosed between two curves?

i don't think the code you include in your question content related to what you want. you have to vector, which are values of y...

3 meses ago | 0

How can I use images which have different size for CNN?

except some special cases, there is a limitation for forwarding different size arrays toward a CNN. after images pass the convol...

3 meses ago | 0

| accepted

Solve the partial differential equation using Crank-Nicolson method.

Hi. you forget to put index in x vector in line 70, in equation you calculate Ur. that's the error. Ur(i,j) = 0.5*erfc(0.5*(x(...

3 meses ago | 0

| accepted

Convert Python code (loop) to MATLAB

it depend on what class you want folds be. (an array, a cell , ... ) for example if all elements in list have same lenght, here...

3 meses ago | 0

| accepted

Why is the eigenvalue a column of zeroes

for the system , is technically a solution. you should search for non-trivial solution. for this you should create null space ...

3 meses ago | 0

How to perform symbolic integration?

it doesn't seems your function has a clear close form primitive function. (or at least it is not easy for matlab symbolic toolbo...

3 meses ago | 0

| accepted

How to keep GUI interface on top？

after the line that you open a file selector (uigetimagefile for example), use this: figure(FIGURE); it will bring up your GUI...

3 meses ago | 0

| accepted

Extracting a section of data with conditions/limits

altitude = [0; 1; 2; 3; 4; 5]; time = ['08:05'; '08:06'; '08:07'; '08:08'; '08:09'; '08:10']; hours = str2num(time(:,1:2)); m...

3 meses ago | 0

| accepted

Neural Network: Custom Loss Function: Minimize Range/Amplitude

From 2021a version, Matlab allows you to define and use customize data, layer, training loop, network and in as you need loss fu...

3 meses ago | 1

| accepted

How to find the indices of similar arrays

The function unique return both unique array of input array and the indexes of original array in unique array. for example : A...

3 meses ago | 0

how to make loop to save value in excel without overwrite with the previous value filled?

for problem you mentioned maybe use writematrix function instead, and use option 'WriteMode' = 'append'. writematrix(DATAR,file...

3 meses ago | 0

How to create a box label datastore?

you can easily create and edit a cell. then convert it to table. here is an example: boxes = cell(10,2); %number of images x 2...

3 meses ago | 1

| accepted

How can I plot three 2D functions in one 3D graph?

a simple way i thing is using plot3: plot3 function, plot a curve in 3D space. if you set all values of one component 0. the cu...

3 meses ago | 1

| accepted