Answered
Is there a less bug-prone way to include quote in selector string variable when defining opt.TableSelector?
opt.TableSelector = "TABLE[contains(.,'" + headings(2) + "')]"; or opt.TableSelector = compose("Table[contains(.,'%s')", headi...

3 years ago | 0

| accepted

Answered
scatter3 based on one of the variable's value
With old enough versions of MATLAB you need to pass in column vectors, especially for the color information.

3 years ago | 0

Answered
how can I create a 3D mesh with distributions
plot3(x1, f1, Angles(1)*ones(size(x1))); hold on plot3(x2, f2, Angles(2)*ones(size(x2))); plot3(x3, f3, Angles(3)*ones(size(x...

3 years ago | 0

Answered
solving symbolic differential equations, error when using dsolve
dsolve() always solves down to f(x) + (one) constant. One there is an initial condition, it tries to solve the == value to give ...

3 years ago | 0

| accepted

Answered
calling an app designal table from an app designer button
provaaa()

3 years ago | 0

| accepted

Answered
Simulate a random walk that starts at a certain time and then stops before the end of the simulation
You can use an if action block https://www.mathworks.com/help/simulink/slref/if.html as that permits you to use the & operator. ...

3 years ago | 1

| accepted

Answered
Textscan function ignores final delimiter when token is empty
filename = tempname() + ".txt"; str = {'12,453 , c'}; writelines(str, filename); fid = fopen(filename, 'r'); datacell =...

3 years ago | 0

Answered
How do you plot markers to specific points?
You have the potential problem that you might not have x coordinates that are exactly 5 or 9 (but exactly 1 and exactly 15 shoul...

3 years ago | 1

Answered
Can i use convolution2dLayer only when the input is an image?
Does "convolution2dLayer" operates only on images? No. By the time the network gets the data to process, all it is getting ...

3 years ago | 1

Answered
When generate HDL codes, can not support fixed point division. My dividend has 40 bits of fraction, and the divisor has 20, the result have 20 fractional bits.
ufix40 divided by ufix20 would give a result with (40-20)=20 bits, but you are requesting en35 which is 35 bits. You can crea...

3 years ago | 0

| accepted

Answered
Read/Write Limitations with Parallel Computing Toolbox (parfor)
parfor does not use shared memory, at least not classically. It uses java queuing operations to transfer data between workers, w...

3 years ago | 0

Answered
How to remove empty line from struct?
mask = cellfun(@isempty, {D.index}) & cellfun(@isempty, {D.sequence}); D = D(~mask);

3 years ago | 1

Answered
Decimal to binary converter
I would suggest that you create your own 2-bit dec2bin: function B = dec2bin_2bit(value) bits = ['00'; '01'; '10'; '11']; ...

3 years ago | 0

Answered
How to use matlab to solve the expression of w with respect to x?
syms w(x) syms c real dw = diff(w); d2w = diff(dw); eqn = d2w/(1+dw^2)^(3/2) == c*x sol = dsolve(eqn) The integrals are pos...

3 years ago | 0

| accepted

Answered
Why do I receive the error message "Arrays have incompatible sizes for this operation"?
The story sometimes gets told that originally Loren phrased the error message as "Didn't Think Twice. Wasn't All Right." but tha...

3 years ago | 1

Answered
HOW TO CHANGE THE SETTING PERMANENTLY IN PREFERENCES FOR SAVING OPERATIONS?
Preferences -> General -> MAT-Files -> (*) MATLAB Version 7.3 or later (save -v7.3)

3 years ago | 1

Answered
Rank the entries of a matrix with codes.
A = [12 4 6; 7 3 8; 1 6 5; 9 2 5] [~, idx] = sort(A, 2) [~, rank] = sort(idx, 2)

3 years ago | 0

| accepted

Answered
how to initialize distance between two users
xy0 = randi(100, 1, 2) %cm, 10 m radius = 10; %cm, 1 m rand_angle = rand(1,1) * 2*pi; [dx, dy] = pol2cart(rand_angle, radi...

3 years ago | 0

Answered
Error using trainNetwork VALUESET must be the same class as DATA.
load c0002s0002t01_lesionsmooth_115.mat whos The information in the file is already categorical, but your custom read functio...

3 years ago | 0

| accepted

Answered
Numerical integral where the bounds change with each evaluation
A = rand omega = logspace(-1,1,1000); fun = @(t,omega) A*sin(omega*t); for i = 1:1000; w=omega(i); f(i) = integra...

3 years ago | 0

Answered
How to prevent rounding number
G1 = tf(173.1227, conv([1 0.2], [1 8 20])) format long g G1.numer The transfer function itself is not using the rounded value...

3 years ago | 1

| accepted

Answered
Deleting multiple rows if they satisfy two conditions
mask = MassiveTable.tmin == 0 & MassiveTable.tmax == 0; MassiveTable(mask,:) = [];

3 years ago | 0

| accepted

Answered
How to display results in a table and same time save results do excel file
how do I display the prediction from the model in a table and at the same time save that result to an excel file when I click a ...

3 years ago | 0

| accepted

Answered
Apply a color variation to a triangular face
Assign the result of trimesh() to a variable. The result will be a patch object. You can then set the patch properties. In par...

3 years ago | 0

| accepted

Answered
keep fscanf past wrong format value
Unless you have integers that might have value outside of +/- 2^53 then there is little point using a %d format. Use a %f format...

3 years ago | 0

| accepted

Answered
Kmeans clustering to detect pothole
In order to do kmeans clustering, you need a 2D array of information about characteristics for each location you are clustering....

3 years ago | 0

Answered
assigning leads to empty value
The basic problem is that there are two important functions named diff. The primary diff() function calculates x(2:end) - x(...

3 years ago | 0

Answered
how to convert a graph from the satellite data to an image form
jpg files are almost always rgb (but on rare occasions are grayscale). If the file is rgb then the number of elements in the fil...

3 years ago | 0

Answered
Problem in using imcrop
x = read(GTTrain); Mask = logical(x); If the result of the read(GTTrain) has 3 or more dimensions (for example it i...

3 years ago | 0

Answered
num2str error in random walk plot
You need to remove /Users/Rocketroos/MATLAB-Drive/QuadrantofSubplotsExample from your MATLAB path, or else you need to rename /U...

3 years ago | 0

| accepted

Load more