Answered
Why break loop is not working?
if gamma(1+m1-(2*s2-j1))== nan; That will never be true. Observe: x = nan x == x x ~= x You need to use isnan()

4 years ago | 0

Answered
How to check if there are more ones than zeros in the variable.
x = [1 1 1 1 1 1 1 1 0 0 0] has_more_ones = mean(x) > 0.5 %note that exactly equal does not qualify as "more"

4 years ago | 1

| accepted

Answered
How do I split a MATLAB table into seperate tables by date?
Thanks to @Voss for inputting the data. t = table( ... {'2022-05-21';'2021-05-21';'2022-05-21';'2022-06-01';'2022-06-01';'...

4 years ago | 1

Answered
extract portion of each cell array elements using cellfun
newA = cellfun(@(C) cellfun(@(M) imresize(M, 100, 700), C, 'uniform', 0), A, 'uniform', 0);

4 years ago | 0

| accepted

Answered
Grid search in svm
Nbox = 15; %change these as desired Nkern = 10; %change these as desired bcvec = logspace(-3, 3, Nbox); ksvec = logspa...

4 years ago | 0

| accepted

Answered
Using switch to identify even or dd
even_odd(-88) even_odd(2) even_odd(3) even_odd(7) function [y] = even_odd(x) r = mod(x,2); switch true case x<=4 &...

4 years ago | 0

| accepted

Answered
What can be done if fsolve cannot find solution?
sometimes there just are no real-valued solutions sometimes you need to narrow down the search range by using tighter upper and...

4 years ago | 0

| accepted

Answered
I want to calculate 'rot' for all parameters of V and TSR, please help
rot = TSR .* V.' ./ R; The rows will correspond to different values of V and the columns to different values of TSR

4 years ago | 0

Answered
Replacing values in a column with a conditional statement.
mask = NNE_fc > 1; NNE(mask) = -9999;

4 years ago | 0

Answered
How can I use the ( nchoosek ) for the following case :- nchoosek(80,64) ???
nchoosek(sym(80),64) nchoosek(uint64(80),64) result is 26958221130508525 which is 17 digits I didn't expect uint64 to...

4 years ago | 2

| accepted

Answered
Where can I find this "trainingPartitions" function?
openExample('nnet/SequenceToOneRegressionUsingDeepLearningExample') The function should be inside the mlx

4 years ago | 1

| accepted

Answered
issues with plots with multiple information
ys_00 =NOMA_users(1:max_iterations, 1); NOMA_users does not exist as a function or variable in your code. You read in data ...

4 years ago | 0

| accepted

Answered
Error with data processing
You need getmswtfeat from https://www.mathworks.com/matlabcentral/fileexchange/33146-feature-extraction-using-multisignal-wavele...

4 years ago | 0

| accepted

Answered
Extract Source Code from Compiled App
In your release, it is known that it is possible to reconstruct code, with comments removed, and not necessarily the same variab...

4 years ago | 1

| accepted

Answered
How do I display "Busy" like that in MATLAB when simulation is running in GUI?
Have you considered using waitbar()? (You are not required to update the estimated fraction complete) waitbar() also has an a...

4 years ago | 1

Answered
couldn't understand what's wrong in the function definition.
o - (k./tc).*2.* sin(y(3))); 1 0 1 2 10! the digits are the nesting level "after" the character abov...

4 years ago | 0

| accepted

Answered
In simulannealbnd solver can we use integer data type?
No, that optimizer has no way of handling discrete inputs. If you want to experiment you could *try* the following strategy (...

4 years ago | 1

Answered
Is Matlab license transferable between OS?
It is *not* licensed by operating system . For example a single named user license is valid for any operating system you boot on...

4 years ago | 0

Answered
cannot solve for unknown variable
vpasolve(sigma, [0 .5e-4]) There is a discontinuity before 1e-4 so if you do not confine the search range the discontinuity...

4 years ago | 0

| accepted

Answered
Check whether a license is available.
Once you are in MATLAB, to check whether a toolbox license is available, you can use license('test') . For example, license('te...

4 years ago | 0

Answered
How to develop multi variation equation
This is not a MATLAB question. MATLAB can help you implement after you have decided on a model, but it cannot find the model for...

4 years ago | 0

Answered
solving system of linear equations in for loop.
T_g=zeros(1,N); T_b=zeros(1,N); T_c=zeros(1,N); You create T_g T_b T_c as numeric variables. syms T_p That is your onl...

4 years ago | 0

Answered
How can I write results from parfor loop into multidimensional array?
utilmatrix_diff_monpol(i,:,1)=aa; utilmatrix_diff_monpol(i,:,2)=bb; When you use parfor, the output variable...

4 years ago | 1

Answered
How can I subtract a 2-d array from every slice of a 3-d array?
A = randi(9, 5, 5, 3); C = randi(9, 5, 5); newA = A - C; %demonstrate that it worked A(:,:,1) C A(:,:,1) - C newA(:,...

4 years ago | 1

| accepted

Answered
UndistortImage function error for Fisheye Image
I = undistortFisheyeImage(I, cameraParams.intrinsics); See for example https://www.mathworks.com/help/vision/ref/undistortfis...

4 years ago | 1

Answered
How to replace first and last element of each matrix in 7x1 cell with 0
NewCell = cellfun(@(C) [0; C(2:end-1); 0], OldCell, 'uniform', 0); Note: using cell as the name of a variable interfers with ca...

4 years ago | 1

Answered
Batch conversion from mat file to pcd file
inputdir = 'Appropriate mat folder name goes here'; outputdir = 'Appropriate pcd folder name goes here'; if ~exist(inputdir,...

4 years ago | 0

| accepted

Answered
can not find c++ compiler detection error
R2021b does not support VS2022 https://www.mathworks.com/content/dam/mathworks/mathworks-dot-com/support/sysreq/files/system-re...

4 years ago | 0

| accepted

Answered
How can i solve bisection method to find roots just based on equations and without interval ?
That is not possible. The bisection method *only* works when there is an interval with the sign() of the function being differen...

4 years ago | 0

Answered
Error Unknown text on line number 1 of ASCII file.
centerCropMatReader is only for reading mat files. It calls load() to read the files, but load() cannot be used for nii files. Y...

4 years ago | 0

Load more