Answered
The OCR function works different between two similar images
You should not be trusting that im2bw will isolate the text when you have multiple background colors. im2bw chooses the threshol...

4 years ago | 0

Answered
find numerical answers using Matlab
Integrate the right hand side with respect to t, remembering the constant. Solve for the constant given the initial condition. E...

4 years ago | 1

| accepted

Answered
cannot solve for unknown variable; stuck in setting search range in the command vpasolve
In the general case, you cannot. You have to analyze the expression into numerator and denominator using numden(). Then you n...

4 years ago | 0

| accepted

Answered
diffrent plots if I add the command assume (0<=t) why ?
assume(0<=t); You solemnly swear that t will never be complex or negative fplot(f_t3,[-20 20]); but you make t nega...

4 years ago | 1

Answered
How to plot two piecewise functions on same graph?
range = [-2 2]; fplot([f, g] , range)

4 years ago | 0

Answered
how to only change the cells with NAN values in a table?
[Lia, Locb] = ismember(datatable2.Date, EDPALL.Date); Lia = Lia & isnan(datatable2.NE8); indx = Locb(Lia); datatable2...

4 years ago | 0

Answered
live editor online: speed and version
MATLAB Online typically runs the newest released version of MATLAB. However immediately after a new release the old version cont...

4 years ago | 0

| accepted

Answered
assign values to a list of columns and rows
A( sub2ind( size(A), r, c))

4 years ago | 0

Answered
Need help in plotting the 3 variable function's contour
format long g step = 10; z = linspace(0,1.2e-6,step); x = linspace(-0.1e-6,0.1e-6,step); y=linspace(-0.1e-6,0.1e-6,step); ...

4 years ago | 0

| accepted

Answered
Select fields that start with specific letters in for loops
%do not use apostrophes, use double-quote for this work interested_variable_vec = ["price", "output", "bond"]; interested_tow...

4 years ago | 0

| accepted

Answered
I have a student version of Matlab, and I need to use symbolic toolbox, but will not download and is not free or included in purchase
Correct. Symbolic Toolbox is extra cost for Student license. There is a Student Suite license which is Student license bundle...

4 years ago | 0

Answered
Help getting clim (caxis) to work as I want
%caxis=[0 1]; should instead be caxis([0 1])

4 years ago | 0

| accepted

Answered
Problem with edfwrite regarding the number of the signals
The number of entries in the cell array is expected to be the same as the number of signals (and each entry must be a vector)

4 years ago | 0

| accepted

Answered
Notify when floating license become available
That's a good question, but unfortunately the tools for doing that are not good. You can use lmutil lmstat https://www.mathwork...

4 years ago | 0

| accepted

Answered
Why won't this function assign the correct name to its output?
%fin_2 is a table with values format long g % 'x' 'y' 'z' fin_2 = array2table( ......

4 years ago | 0

| accepted

Answered
How to get the name of the input signal in a matlab function (simulink block)
If you are still trying to do that testing about nan, remember that code cannot do dynamic fieldname access in generated code; h...

4 years ago | 1

Answered
How to plot the product of two piecewise function
syms f(x) g(y) f(x) = piecewise(x < 0, sin(x), cos(x)) g(y) = piecewise(y^2<1, y, y^2) h(x,y) = f(x)*g(y) fsurf(h, [-3 3 -3 ...

4 years ago | 0

| accepted

Answered
about convert time data and plotting
load TDD thick = TDD(:,1); dt = datetime(TDD(:,2),'ConvertFrom', 'datenum', 'Format', 'MM'); scatter(dt, thick, '.')

4 years ago | 0

Answered
how to cover math expression to symbolic expr.?
This was a bit tricky -- and the code as-is will not handle the case of B by itself (it would leave the B there unchanged.) Thi...

4 years ago | 0

Answered
Failure when using ode15i : not meeting integration tolerances
I am a lot less familiar with ode15i, but I think your equations need to have continuous derivatives, at least one step. Which w...

4 years ago | 0

| accepted

Answered
how to load a txt file and create a matrix?
The file uses comma as decimal point, which needs to be account for. C = readmatrix('grad_all_er_v1.txt', 'Decimal', ',', 'trea...

4 years ago | 0

| accepted

Answered
Is it possible to use Parallel Computation in app designer?
Yes. There are no additional constraints for App Designer, just the same constraints as otherwise. Remember though that "app" i...

4 years ago | 0

| accepted

Answered
cannot locate function plotInteraction
plotInteraction is a method of LinearModels . It will be invisible to "which" until you have loaded the LinearModel or CompactLi...

4 years ago | 0

| accepted

Answered
How to generate random variable theta for F(theta)=N(1 - (mu*B)/(k*T)*cos(theta)). For N=1 and mu*B/k*T=0.01
syms mu B k T theta f(theta) = 1 - (mu*B)/(k*T)*cosd(theta) x = rand(1,5) * 180 f(x) vpa(ans)

4 years ago | 0

Answered
problem in adding and installing Toolboxes
We recommend using the Add-On Explorer if supported in your MATLAB release. If you use the Download link then expand any archiv...

4 years ago | 0

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

Load more