Answered
Why is my GUI program producing an error when I 'Run' it?
svdgui appears to be part of the third-party MCR-ALS Toolbox from https://mcrals.wordpress.com/download/mcr-als-2-0-toolbox/ Y...

3 years ago | 0

| accepted

Answered
Cant define figure position on second monitor with Mac OsX Using R2022b Update 3
If a graphics command does not work while executed inside a function or script, but the same command works at the command line, ...

3 years ago | 0

Answered
Plotting fmincon with varying constraint
See http://www.mathworks.com/help/matlab/math/parameterizing-functions.html for how to create an anonymous function of one varia...

3 years ago | 0

| accepted

Answered
Psychtoolbox-3: Error using Screen
You are passing a name in, but you need to pass the image content instead. So you need to imread()

3 years ago | 0

| accepted

Answered
how to identify grayscale image as an RGB image
CNN are fed by data stores not by individual images. The recommended practice is to use an augmented image data store. Those per...

3 years ago | 1

Answered
Can we design Gauge, Knob, Lamp and Switch symbol in GUIDE ?
Yes, with difficulty. You would have to make the control an image() object and you would need WindowButtonMotionFcn callback, an...

3 years ago | 1

| accepted

Answered
How to use the slice command to visualize one image into two intersecting planes?
use improfile() or interp2() to get a line through a plane.

3 years ago | 0

Answered
How to do if condition on the type of data
%preparation if rand() < 0.5 C = 23; else C = {23, 'skidoo'}; end %now we need to know the type of C to progress...

3 years ago | 0

| accepted

Answered
how to input a function output's in another one?
%example [out1, out2] = first_function(12345) out3 = second_function(out1, out2) function [x1, x2] = first_function(n) x...

3 years ago | 0

Answered
Plot 2D contour of z at (x,y) coordinates
See https://www.mathworks.com/matlabcentral/fileexchange/38858-contour-plot-for-scattered-data

3 years ago | 0

Answered
Hi, I want to format excel cell, such way that the text in a cell rotated to 90 degree anticlockwise. please let me know the command for this?
See https://www.mathworks.com/matlabcentral/answers/475254-with-activex-server-running-excel-access-the-cells-syntax-on-range-pr...

3 years ago | 0

Answered
sorting items stored as into two groups
Create one categorical for West, and one for East, and combine: W = categorical({'Kings', 'Flames'}) E = categorical({'Bruins'...

3 years ago | 0

| accepted

Answered
How to approximate float function by integer numbers?
General exact process: This can be done more compactly using bitand() and bitget() and similar, but sometimes it is easier to t...

3 years ago | 1

Answered
Interfacing Arduino IDE with MATLAB
If you use the Arduino support package then see https://www.mathworks.com/help/supportpkg/arduinoio/ref/matlabshared.i2c.device....

3 years ago | 0

Answered
Default randomization with parfor?
https://www.mathworks.com/help/parallel-computing/control-random-number-streams-on-workers.html and https://www.mathworks.com/...

3 years ago | 0

| accepted

Answered
How to change all elements of a vector V to achieve the condition sum(V) equal with a upper and lower boundaries?
if the requirement is that you apply a linear transform to the elements of V producing a new vector W such that sum(W) == 1 and ...

3 years ago | 1

Answered
LaTex Interpreter does not work correctly?
ylabel('$\frac{\partial\rho}{\partial T} [kg/m^3/K]$','Interpreter','latex') The ³ character is not accepted for latex T...

3 years ago | 0

| accepted

Answered
How to pull the directory information from a matlab script into python script.
https://www.mathworks.com/help/matlab//matlab_external/ways-to-call-python-from-matlab.html pyrun from inside matlab instead ...

3 years ago | 0

Answered
I get an error when trying to run my function using a simulink block.
if (DefuelSwitch == 1) && (EnginesOnSwitch == 1) If that condition is not true, you do not assign anything to y, but you need ...

3 years ago | 0

| accepted

Answered
How can I access the elapsed time in analog input recorder?
Most NI DAQ devices do not keep a record of that information, so you would need to know exactly which model you were referring t...

3 years ago | 0

Answered
Please, I want help in adjusting the quality of the figure surface shape as in the attached picture (as in color, and colored lines in the horizontal plane)
It is not clear to me what changes you want. If you want a plot that is smoother along the a axis then you ned to use more a_ve...

3 years ago | 0

| accepted

Answered
How to handle Error updating FunctionLine?
You define an anonymous function of one variable. In the next line you define a second anonymous function and ask to fplot it. W...

3 years ago | 0

Answered
how to overlay vector plot using quiver on unit 18 (1024 * 1280 )image
I recommend against imshow for this purpose. Instead call image(). When you do, either pass in the two optional positions bef...

3 years ago | 0

Answered
What does the dot mean? I have this formula: (k < 0.)
The code you are showing is C or C++ code, not matlab code. Any meaning matlab might give for dots is irrelevant; you have to lo...

3 years ago | 2

| accepted

Answered
How to use Matlab to create dfs2 file from Ascii (text) file?
https://docs.mikepoweredbydhi.com/core_libraries/dfs/dfs-file-formats/ does not describe the details of the file format. It doe...

3 years ago | 1

| accepted

Answered
Add white noise with 0 mean and 1 std
w = @(k) randn(size(k)) ;

3 years ago | 0

| accepted

Answered
store vctors of non-fixed size
If you have a known number of iterations, then pre-allocate a cell array and store the results into that. If you have a maxim...

3 years ago | 0

Answered
Is there a way to change the value of the transfer function through MATLAB & Simulink?
F until time t1 and then G can be achieved as F + (G minus F, delayed t1) See the InputDelay parameters of tf(). Or if you co...

3 years ago | 0

Answered
dijkstra algorithm function problem
Suppose you have an N x 2 cell array P, with a row P(K,:) representing information about a potential path to take. P{K,1} is the...

3 years ago | 0

Answered
MATLAB and Fortran gives different results (precision)
FORTRAN and MATLAB do not necessarily use the same floating point rounding mode for calculations. Control over rounding mode is...

3 years ago | 1

Load more