Answered
hi.how to convert cell array to table?. i tried using cell2table() but it shows an error 'invalid function for the type cell'
LastName = {'Smith';'Johnson';'Williams';'Jones';'Brown'}; Age = [38;43;38;40;49]; % No need to convert this to strin...

9 years ago | 0

| accepted

Answered
2016b exe size is too large
I try to post an answer, although I'm not sure what the question is exactly: As you have seen already, R2016b creates larger ...

9 years ago | 0

Answered
Get the nearest value when two arrays are logged at different time.with different logging rates
y = rand(360313, 1) x = rand(71885, 1); index = zeros(size(x)); for k = 1:numel(x) [~, index(k)] = min(abs(y - x...

9 years ago | 0

| accepted

Answered
ode45 system of equations
This is a very strange example. Using strings to provide the function to be integrated is outdated for 15 years now. Appending [...

9 years ago | 0

Answered
Is it possible to cast the id of a file?
No, file handles are expected to be of type double - as you have demonstrated with code. I cannot imagine, why casting the fi...

9 years ago | 0

| accepted

Answered
How to find position of a time vector in another time vector?
While I'm not sure what your inputs are, most likely this will solve the problem: [ex, loc] = ismember(A, B)

9 years ago | 0

| accepted

Answered
Working with dde23 for a simple problem
If x is [0;0;0] for t < 0 and xdot = -L * x(t-1), you get xdot=[0;0;0] for the time 0<=t<=1. If you integrate this, x will remai...

9 years ago | 0

| accepted

Answered
how to combain matrix with vector
<https://www.mathworks.com/matlabcentral/fileexchange/22909-padcat-varargin- FEX: padcat>: a = [9 8 7; 6 5 4]; v = [1 2 ...

9 years ago | 0

Answered
why calculation time become slow when I use mex file?
I do not understand the question completely. Do you mean, that the C-mex function is slower or faster than a matrix-vector multi...

9 years ago | 1

| accepted

Answered
problem using xticks and xticklabels
axes('XTick', 1:10:600, 'XTickLabelMode', 'manual', 'NextPlot', 'add'); plot(1:1000, rand(1, 1000)); I'm not sure if thi...

9 years ago | 0

Answered
I am getting error in edge function like "Attempt to execute SCRIPT edge as a function:" b=edge(img,'canny',0.40); Can someone solve this error?
This error occurs, if the parent folder of |edge.m| is the current folder. Try this: cd(tempdir) and run the code again....

9 years ago | 0

Answered
How can I reduce the number of digits?
data = round(data, 4);

9 years ago | 1

Answered
Anyone able to find the error in this aerofoil code?
if 0<=x<=(P*c) This will most likely not do what you expect. Unfortunately there is no comment, which defines clearly, what...

9 years ago | 0

Answered
how can use a line_fewer_markers in R2015a
You can solve the problem either by writing the function |line_fewer_markers|, or if you have this function already, you might h...

9 years ago | 1

Answered
Square root algorithm of a positive number
As usual for homework questions: Please post, what you have tried so far and ask a specific question. It would be counter-produc...

9 years ago | 0

Answered
Index exceeds matrix dimensions
If the initial conditions have 2 components "ic=[0;pi]", why do you think, that the state variable has 4? The size of x in |pend...

9 years ago | 0

Answered
Error in command window
Seriously? You do not show any detail of the code, but only the output values and assume, that the readers of the forum can sugg...

9 years ago | 0

| accepted

Answered
How to read a gzip compressed file without unzipping it to the harddrive?
Perhaps you want something like this: fileStr = javaObject('java.io.FileInputStream', 'YourFile.gz'); inflatedStr = ...

9 years ago | 0

| accepted

Answered
Why do I have this message while installing Matlab?
What is your question? The message means, that the download has been canceled prematurely, perhaps because the connection was to...

9 years ago | 0

Answered
Need a command as simple things sir
minV = 2; maxV = 12; a = zeros(5, 4); for k = 1:5 a(k, :) = randperm(maxV - minV + 1, 4) + minV - 1; end ...

9 years ago | 0

Answered
removing zero data from Scatter3 figure
What is "transparent color"? Do you want the points to vanish? Then: [x,y,z] = meshgrid(1:50,1:200,1:200); keep = (P(:) ...

9 years ago | 1

| accepted

Answered
Can a controllable matrix become uncontrollable due to matrix transformations?
In theory, these modifications of the matrix cannot change the value of the determinant to 0, if it was not 0 before: swapping r...

9 years ago | 0

| accepted

Answered
Copyobj did not copy attributes/properties
If this is the "normal" behavior or not depends on the definition of "normal": Do you mean the _intended_ or the _usual_ behavio...

9 years ago | 0

Answered
accessing same file names in two different directories for comparison
The anonymous functions are more complicated than useful here. Try this: Folder1 = 'neutral/FillF3/Plane*';% FOLDER templa...

9 years ago | 0

| accepted

Answered
How I can check the button if enabled or disabled in MATLAB?
Actually the question is far too lean to be answered reliably. But a guess: if handles.Checkbox1.Value This is sufficien...

9 years ago | 0

Answered
Grouping set of numbers with different size of rows
Maybe: groupNum = {1, [61 32 624 15 2000]; ... 2, [25 3 635]; ... 3, [19 20 49 30]; ... ...

9 years ago | 0

Answered
How can I get numerical data from character array.
filename{2} = 'test1111 3425.csv'; num = sscanf(filename{2}, 'test%d %d.csv')

9 years ago | 1

Answered
confusing datestr and datetime month and minutes formating
MathWorks tried to make it more consistent in the new datetime objects. [EDITED] See the <https://blogs.mathworks.com/loren/2015...

9 years ago | 0

| accepted

Answered
How to multiply N matrices without a FOR loop? (Slices of 3D array)
If you really have 2x2 sub matrices to accumulate, try a C-Mex function: #include "mex.h" void mexFunction(int nlhs, mxA...

9 years ago | 3

Answered
Whats the influence of the initial conditions using the function "filter"?
See |filtfilt| for a reflection method to reduce the initial phase: The signal is mirrored at the initial point and the state pa...

9 years ago | 0

Load more