Answered
How to unit test with verifyWarning?
You did not post how |testCase| is defined in your case. According to the error message it is a function handle, but the comma...

8 years ago | 1

Answered
Plot values changing with events in one continous graph
ateout = []; ayeout = []; aieout = []; dy5 = []; while t(end) < tend % Integrate until event-function st...

8 years ago | 0

Answered
Finding index if exist
idx_r02r(ww) = find(contains(Data_description{1,(ww)},'R0*_Right')); This can work only, if exactly 1 matching string is fo...

8 years ago | 0

Answered
how to solve newton method ?
One problem is hidden inside: fun =inline( '[x(1)^2+ x(2)^2 + x(3)^2 -1 ; x(1)^2 + x(3)^2-0.25 ; ...

8 years ago | 0

Answered
Help with GUI and plot3 plotting
|axes| does not create a "plot" at all, but only an axes object. If you draw some 3D data in it, you can set the _view_ to 3D: ...

8 years ago | 0

Answered
How do I fix: dot indexing is not avaliable for variables of this type ?
Let Matlab stop, when the error occurs: dbstop if error Type this in the command window. Then run the code again until i...

8 years ago | 2

| accepted

Answered
Warning: Unable to create personal MATLAB work folder:C:\Users\home\Documents\MATLAB >>
I guess that your virus protection blocks the access to your Documents folder. E.g. BitDefender does this and as far as I know M...

8 years ago | 7

| accepted

Answered
How to do division on matrices ?
v = [a b; c d] \ [k; l]

8 years ago | 1

Answered
(Desktop)-Icon for starting a Programm
You can create a small batch file, which calls Matlab with the -r switch: matlab.exe -r yourFunction Save this script to...

8 years ago | 0

| accepted

Answered
Are specific MATLAB versions tied to individual licenses?
You can download previous versions also and run them. See <https://www.mathworks.com/downloads/web_downloads/select_release> - t...

8 years ago | 0

| accepted

Answered
add blank spaces in cell array
ar = [0,1,0,0,0,0,0,0,0,0; ... 0,0,0,3,0,0,0,0,0,0; ... 0,0,0,0,0,0,2,0,0,0; ... 0,0,0,0,0,0,0,0,3,...

8 years ago | 0

| accepted

Answered
how to programmatically make a GUI
Maybe this helps: <https://www.mathworks.com/matlabcentral/fileexchange/24861-41-complete-gui-examples>

8 years ago | 0

| accepted

Answered
Hi there, I would like to launch a .bat file from matlab at the bat file direcetry
Maybe you mean. cd('.\VFPSolver\'); system('runvfph.bat &');

8 years ago | 0

| accepted

Answered
how can i create a sequence of .m file whit a button in a gui?
function pushbutton12_Callback(hObject, eventdata, handles) persistent Counter if isempty(Counter) Counter = 0 e...

8 years ago | 2

Answered
How can I strip single quotes from a cell array?
Your cell array does not contain any quotes, so removing them has no effect. The quotes appear only in the command window, when ...

8 years ago | 0

Answered
How to control number of minor ticks between the major ticks?
You can specify the |MinorTickValues|: axesH = axes; plot(axesH, 1:10); axesH.XAxis.MinorTick = 'on'; axesH....

8 years ago | 3

| accepted

Answered
Increment a vector in ODE45
tspan = [1 2 3 4 5 6 7 8 9 10 11 12 13 14 15]; y0 = 20; tC = []; yC = []; for k = 1:14 [t,y] = ode45(@(t,y) t...

8 years ago | 0

Answered
about non negative matrix factorization
According to your screenshot, the function operates on an "n by m matrix". Then I'm convinced that "N*M" is the number of elemen...

8 years ago | 1

Answered
how to sort in a loop?
It is not clear what you want to sort. I do not see any reason to sort something. What about: A = cell(1, 42); for i = 1...

8 years ago | 1

| accepted

Answered
multiple ui edit field clear using a callback
for k = 1:100 H = handles.(sprintf('EditField_%d', k)); set(H, 'String', sprintf('%g', rand)); end I guessed y...

8 years ago | 0

| accepted

Answered
speed optimization in "for" loops
The code overwrites |Edf_Trials3.EndTime_of_Ppt(j)| repeatedly. Then you can run the inner loop in backward direction and stop a...

8 years ago | 0

| accepted

Answered
Filling a repeating series
I assume, that you can manage the Excel import or export by your own, this fills the missing values with zeros: X = [1,3,2,...

8 years ago | 0

| accepted

Answered
Failed to call 64-bit MATLAB(2018a) from Intel Visual Fortran Code
The error message tells you, that a main function is missing. The code starts with the gateway function |mexFunction(nlhs, plhs,...

8 years ago | 0

| accepted

Answered
Squared heatmap with random transition; animation
What about |pcolor|?

8 years ago | 0

Answered
Fatal Error to start matlab for first time
Try to un-install and re-install Matlab. Check, if your graphics drivers are up to date. If this still does not work, contact Ma...

8 years ago | 0

| accepted

Answered
how can I do this mathmatical operation?
This works without a loop: n = size(a, 1); b = a(1:2:n-2, 3) - 2 * a(2:2:n-1, 3) + a(3:2:n, 3)

8 years ago | 2

Answered
How can i place saved figures into a new figure as subplots?
I assume, all you have to do is to replace: h7 = figure; %create new figure s1 = subplot(2,3,1); %create and get handle ...

8 years ago | 1

Answered
Zoom an area of an image while showing whole image
Take the time to look in the FileExchange: <https://www.mathworks.com/matlabcentral/fileexchange/?utf8=%E2%9C%93&term=zoom FEX: ...

8 years ago | 0

Answered
Is Ui automation possible/effective with Matlab?
This is a very general job. Of course you can do this with Matlab, e.g. using <https://www.mathworks.com/matlabcentral/fileexcha...

8 years ago | 0

| accepted

Answered
How to create a loop for a matrix and plot the outputs in a graph?
x = rand(100, 2); axes('NextPlot', 'add'); % equivalent to "hold on" for k = 1:5 a = (k - 1) * 20 + 1; b = a...

8 years ago | 0

| accepted

Load more