Answered
Get the Foldername in a char array
If 'X:\Mieß\Vorlagen\019' is the available input, use: S = 'X:\Mieß\Vorlagen\019'; [~, LastPart] = fileparts(S);

9 years ago | 1

| accepted

Answered
Rounding decimals matlab manipulates
Try it: x = 13.3 y = mod(x, 1) z = 13.6 y = mod(x, 1) Now you should see how to use the output to decide, if th...

9 years ago | 0

Answered
Generate 1 matrix from 3 data columns
X = [1,2,3,1,2,3,1,2,3] Y = [1,1,1,2,2,2,3,3,3] V = [0.12240, 0.36649, 0.11111, 0.19834, 0.56791, 0.94876, 0.22284, 0.13...

9 years ago | 2

| accepted

Answered
If I have a logical array with 2 or more sets of continuous true values, how do I just grab the first or second continual set, for example?
v = [0 0 0 1 1 1 1 0 0 0 1 1 0 0]; ini = strfind(v, [0, 1]); fin = strfind(v, [1, 0]); idx = (ini(1) + 1):fin(1) ...

9 years ago | 0

| accepted

Answered
Why do bottom right numbers not match between Tutorial and LATLAB answers ?
Obviously your a(3,3) is 9, and not 10 as in the example.

9 years ago | 1

Answered
How can I initiate a while loop with a GUI button (using UI control) and then end that loop with a different GUI button?
Do not use a string to define a callback. This is supported for backward compatibility with the ancient Matlab 5.3 only. Use a f...

9 years ago | 0

| accepted

Answered
How to convert MATLAB GUI to .exe with MinGW?
You need the Matlab Compiler Toolbox to convert the M-files to an executable. It is not enough to create a Mex function, because...

9 years ago | 0

| accepted

Answered
Guidata not updating handles in timer stop function
I assume that there is a mistake in your way to check the success of the update of the handles struct. You did not show the GUI ...

9 years ago | 0

Answered
How to input images into excel cells?
Did you take the time to ask an internet search engine at first? This is easier and faster than letting the forum post the corre...

9 years ago | 1

Answered
create different vector using for loop
Don't do this. The question is asked several times each week, and the answer is always the same. Do not hide an index in the nam...

9 years ago | 0

Answered
can any one send me 'stopSignsAndCars.mat' file?
Why do you believe, that the readers of the forum know, *which* file you want to get? Everybody can create a file with the given...

9 years ago | 0

Answered
Why can't my user defined function use a variable it calculates?
Perhaps you want: function t = Impulse_Over_Burn_Time I = input('What is the engines impulse?'); T = input('What is y...

9 years ago | 1

Answered
Missing elements in .mat while using load with r2017a
This is not a -v7.3 MAT file, but a 5.0 MAT-file version. You cannot open it in 2017a, because it contains the field name 'Nu...

9 years ago | 1

| accepted

Answered
Colormap function is not working (color does not change)
figure(1) AxesH = axes; imshow(CT_Scan1{1}, 'Parent', AxesH); colormap(AxesH, jet); Note than |imshow| accepts the...

9 years ago | 1

Answered
Can corrupted m-files be fixed?
No. If any byte has been lost in an M or MAT file, the contents is destroyed and cannot be recreated with a 100% reliability. If...

9 years ago | 0

| accepted

Answered
how to sum a vector without sum func
What about: v = 19^3 - 17^3 + 15^3 - 13^3 + 11^3 - 9^3 + 7^3 - 5^3 + 3^3 - 1^3;

9 years ago | 0

Answered
MATLAB pause does not seem to work
Perhaps it is a kind of overflow in a time counter of the |pause| command. I do not understand, what you did with |tic/toc|, ple...

9 years ago | 0

Answered
fprintf save file as UINT16 or UTF16
There is no unique identifier to mark a text file as UTF16. Note that UINT16 is something different. Try this: f = fopen(fi...

9 years ago | 0

| accepted

Answered
Can I control how much shared memory Matlab can access?
You do not need only 1.7GB of RAM to allocate an array using 1.7GB, but this memory must be available as a contiguous block in a...

9 years ago | 0

Answered
how can i vectorize this for loop??
Now the vectorized version: function cp = YourFcn() k = 1:0.5:10; a = 1:0.5:5; n1 = numel(k); nump = kron(k, ...

9 years ago | 0

Answered
Cause of invalid file identifier (no such file or directory)?
Obviously the path is not correct. You can check this easily: File = fullfile(D, d(k).name, S); [fid, message] = fopen(F...

9 years ago | 0

| accepted

Answered
How to add annotations to tab panels?
hTabGroup = uitabgroup; tab1 = uitab(hTabGroup, 'title','Panel 1'); a = axes('parent', tab1); surf(peaks); ...

9 years ago | 1

| accepted

Answered
Combining 2 matrix of different row numbers but same column numbers.
How coud we help you? You try to concatenate a [4 x 11] and a [3 x 11] matrix horizontally. But the horizontal concatenation req...

9 years ago | 1

Answered
how can i vectorize this for loop??
Do you really want to vectorize the loop? Or is it enough to increase the speed remarkably? For the latter, use the profiler to ...

9 years ago | 1

| accepted

Answered
Hello, I am trying to solve the following code with bvp4c
The error message is very clear: There is an unexpected character in the line 11 of the file "inclinedcylinder.m". It is the 6th...

9 years ago | 0

| accepted

Answered
How do I pass a variable into a function without defining it as global or in the arguement?
Do you mean this: <http://www.mathworks.com/matlabcentral/answers/1971 Answers: Use anonymous functions to pass parameters> ?

9 years ago | 1

| accepted

Answered
How can I make a pattern of binary digits like this?
The idea is to get all ways to select N values out of 1:M. This is cheaper than to create all combinations at first and removing...

9 years ago | 1

Answered
What does determine the time to update plot?
Part 1: The update of the figures is triggered by |drawnow| or |pause|. As you have obeserved correctly, the times are varying a...

9 years ago | 0

| accepted

Answered
findpeaks doesn't work with a different startup folder
Is there any build-in debugging facility in Matlab that can clearly tell what is exactly the problem, like in this case? N...

9 years ago | 0

| accepted

Answered
not recognized as an internal or external command
The error message seems to be clear. Where do you expect the executable "libsvm-2.88\windows\svm-train.exe" to be? Relative t...

9 years ago | 0

| accepted

Load more