Answered
Trying to code from polymath
I suggest that you set up the equations using the Symbolic Toolbox, and that you then use the flow of control shown in the first...

4 years ago | 0

Answered
Solve an equation while we have an if statement that makes the coefficient depends on the variable
typically the best way to solve these situations is to run both branches separately, vpasolve() each of the branches, test each ...

4 years ago | 0

Answered
concetrate on specific range of axis limits
There is a File Exchange contribution with a name similar to "breakaxes"

4 years ago | 0

Answered
Breaking loop at a desired value
keepgoing = true; for k =... for i =... for j =... if i==11 && j==11 && T(11,11,k+1)>14.9 && T(11,...

4 years ago | 1

| accepted

Answered
how to use simulink block
https://www.mathworks.com/help/simulink/slref/mathfunction.html https://www.mathworks.com/help/simulink/slref/trigonometricfu...

4 years ago | 0

Answered
Error while using ode15i:Not enough input arguments.
In any current version of MATLAB, MATLAB is permitted to assume that scripts will not assign to any variable name that is also t...

4 years ago | 1

| accepted

Answered
How to use extractBetween command?
Do not do the regexp split until after the extraction

4 years ago | 0

Answered
how can i fill the region inside the leaf
rgb = reshape(YourImage, [], 3); idx = kmeans(rgb, NumberOfClusters) ; labeled = reshape(idx, size(YourImage(:, :, 1)));...

4 years ago | 0

Answered
How do I rotate a text object in a 3D plot to appear to be painted on the wall?
Use computer vision toolbox to draw the text into an array. Use warp() to texture map the array as a surface. It will now rotate...

4 years ago | 0

Answered
How to replace an element with average of surrounding elements excluding that particular element?
If not for boundary conditions, you could use [1 1 1; 1 0 1; 1 1 1]/8 For boundary conditions, consider what happens if...

4 years ago | 0

| accepted

Answered
How to Load and Rename a txt File
use uigetfile to get the file name and directory. Check whether the file name variable is numeric: if it is then the user cancel...

4 years ago | 0

Answered
What CNN algorithms can I use for Denoise Speech?
Data is data. You can reshape it or chop it up however you want. Deep Learning algorithms do not care whether the data was an im...

4 years ago | 0

Answered
surf can not be drawn/how triple objective function is written in same page with ga solver?
Your question is not clear. nvars = 2; lb = [-3 -3]; ub = [3 3]; %initial population %crossover and mutation options = o...

4 years ago | 0

| accepted

Answered
Help iteration for loop and tables vertcat
Don't do this. put the tables in a cell array and use cell indexing instead of dynamic variable names.

4 years ago | 1

Answered
Why do I receive an error in image write in the imwrite saying I cannot write jpeg file because of signed integer, appreciate it a lot, thanks.
https://petapixel.com/2014/01/22/jpeg-standard-gets-boost-will-support-12-bit-color-depth-lossless-compression/ The maximum b...

4 years ago | 0

Answered
ode45,ODE23 , force is not a time dependent function
If you have external impulses, then none of the ode* functions can be used for the entire timespan, *unless* the forces can be i...

4 years ago | 1

| accepted

Answered
How to include a Latex package for MATLAB Latex Interpreter to use?
There is no known way to do this for the last several years, with the exception that it is potentially possible for Report Gener...

4 years ago | 0

| accepted

Answered
from File and if block conditions error
Transpose your mat data. Timestamps are first *row* not first column.

4 years ago | 0

Answered
Converting string to function/number
str2sym() matlabFunction is commonly used together with str2sym()

4 years ago | 0

Answered
I want to build simple multiply function with GUI, but every time a got an error with it, with pushbottom
rename product_Callback to Pushbutton1_Callback And next time use the facilities of Guide to rename controls so that it will ...

4 years ago | 0

| accepted

Answered
Computational Time Analysis in Simulink
There is no meaningful solution for continuous time models. Continuous time models use ode solvers that can reject steps in orde...

4 years ago | 0

Answered
Interactive rectangle on UIAxes for user to choose a region
https://www.mathworks.com/help/images/ref/drawrectangle.html and make sure to pass in the uiaxes

4 years ago | 0

| accepted

Answered
Can you use multiple TCP/IP links in parallel on one device?
Do not kill the command prompt from within the worker, you are killing the ones created by the other workers. You should cons...

4 years ago | 0

Answered
How can I separate the elements of a vector ?
File Exchange, run length encoding. If I recall correctly, contribution is from Jan.

4 years ago | 0

Answered
I want it to find the solution with the Newton Raphson method with the function entered, but it gives an error and when I copy and paste the codes on another page, it pastes d
fstr = input('Fonksiyon değerini giriniz f(x):', 's'); syms x fsym = str2sym(fstr); f = matlabFunction(fsym, 'vars', ...

4 years ago | 1

Answered
BUG: Saving plot into png changes the fontsize
Switch to https://www.mathworks.com/help/matlab/ref/exportgraphics.html

4 years ago | 0

| accepted

Answered
Difference between debug parfor loop and run it
parfor is not always able to automatically determine which functions will be called by workers, especially if eval() or run() is...

4 years ago | 0

Answered
Getting "Unrecognized function or variable 'reshape'" error!!
reshape([1 2 3 4],:,1); Notice the : . : by itself can only appear (a) in comments; (b) in character vectors; (c) in string...

4 years ago | 2

| accepted

Answered
Unsure why heatmaps cannot be produced.
imgetfile() is part of the Image Processing Toolbox. The code would fail if you do not have that toolbox installed and licensed....

4 years ago | 1

| accepted

Answered
How can I solve dimension problem? Simulink
You need to transpose the data in the file. The first row is the time stamps and rows after that are samples for that time. You ...

4 years ago | 0

Load more