ε·²ε›žη­”
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)))

2 years 前 | 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...

2 years 前 | 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 years 前 | 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 years 前 | 0

| ε·²ζŽ₯受

ε·²ε›žη­”
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 years 前 | 0

| ε·²ζŽ₯受

ε·²ε›žη­”
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 years 前 | 0

| ε·²ζŽ₯受

ε·²ε›žη­”
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 years 前 | 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 years 前 | 0

| ε·²ζŽ₯受

ε·²ε›žη­”
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 years 前 | 0

| ε·²ζŽ₯受

ε·²ε›žη­”
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 years 前 | 0

| ε·²ζŽ₯受

ε·²ε›žη­”
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 years 前 | 1

| ε·²ζŽ₯受

ε·²ε›žη­”
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 years 前 | 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 years 前 | 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 years 前 | 2

| ε·²ζŽ₯受

ε·²ε›žη­”
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 years 前 | 2

| ε·²ζŽ₯受

ε·²ε›žη­”
How can I fit a lower tail distribution for the lower 25% of the data?
Hi. here's a quick example: %X = zeros(1000,1); % Create data X = normrnd(2,1.5,1000,1); X_sort = sort(X); % sort data by t...

3 years 前 | 0

| ε·²ζŽ₯受

ε·²ε›žη­”
unable to optimise the following using linprog
HI. here's how you should do it: First i create a sample database for my self to use as parameters: (i use 100 points in 4D fea...

3 years 前 | 1

| ε·²ζŽ₯受

ε·²ε›žη­”
How can I create nested pie/doughnuts chart?
this might be useful: https://www.mathworks.com/matlabcentral/fileexchange/56833-donut but it's a lot simpler than charts in y...

3 years 前 | 2

| ε·²ζŽ₯受

ε·²ε›žη­”
Error using plot Data must be numeric, datetime, duration or an array convertible to double.
f is a symbolic expression not a function or vector. you can create a function with this expression, then plot the value of func...

3 years 前 | 1

| ε·²ζŽ₯受

ε·²ε›žη­”
How can I detect a triangle in my image?
Hi. in case your problem is exactly what you attached. here is an easy solution i can provide: I = imread('image.jpeg'); %read ...

3 years 前 | 0

ε·²ε›žη­”
How can I solve an Optimization problem?
you can use fmincon, this function minimize function in a constraint problem. but only constraint here is bounds of lambda. so o...

3 years 前 | 0

ε·²ε›žη­”
input layer and flatten mismatch
The Flatten layer support sequence input only. [1] As i understand from your network architechture you don't need Flatten Layer...

3 years 前 | 0

| ε·²ζŽ₯受

ε·²ε›žη­”
Optimize a function with a sum of series
Hi , you don't need necessarily symboilic functionality for this problem. here is a simple solution. (you can run it in single ....

3 years 前 | 0

| ε·²ζŽ₯受

ε·²ε›žη­”
ResNet-50 training problem
this note is from official MATLAB documentation for trainingOptions , i think it's exactly what you're looking for. "When t...

3 years 前 | 0

| ε·²ζŽ₯受

ε·²ε›žη­”
How to convert text file to string?
use fscan or fread F = fopen('Untitled.txt'); Text = fscanf(F,'%c')

3 years 前 | 1

| ε·²ζŽ₯受

ε·²ε›žη­”
Solving a nonlinear equation
the eqn as you defined is a vector-value multi-variable function. fzero takes a scalar-value single-variable function. so maybe...

3 years 前 | 0

| ε·²ζŽ₯受

ε·²ε›žη­”
if statement is not working
the condition theta >= 41.19 & theta <= 90 is a logical vector with 20 values. if you want to calculate such a formula for those...

3 years 前 | 0

ε·²ε›žη­”
Interp1 returns NaN for all values
According to documentation of interp1. the function returns NaN for points outside the domain. so check V and See if it's point ...

3 years 前 | 0

| ε·²ζŽ₯受

ε·²ε›žη­”
A problem using the app designer
in PlotFitButtonPushed function which you plot your graphs, by using figure you create new figure out of your app.UIFigure. use ...

3 years 前 | 0

| ε·²ζŽ₯受

ε·²ε›žη­”
How can I get the hessian matrix of a set of several functions?
The Hessian is officially defined for scalar value functions. depend on what application you want to use hessian, you may define...

3 years 前 | 2

εŠ θ½½ζ›΄ε€š