Respondida
Finding Argument of Bessel Function (1st Kind) to Return Known Solution
If you set the solution range, then you will get a positive solution, e.g.: ... Sol = vpasolve(besselj(0,F), r, [0, 165])

casi 5 años hace | 0

Respondida
Trying to compress a signal.
Have you read this help DOC: https://www.mathworks.com/help/signal/ug/dct-for-speech-signal-compression.html that explains all ...

casi 5 años hace | 0

Respondida
I have a problem in solving and animation
There was one potential size related err in Y2 that is fixed. Plug in this into your code and then your simulation works OK. ....

casi 5 años hace | 0

| aceptada

Respondida
Creating a pseudo-color image from a grayscale image
(1) Embed these three equations for variable x and c1, c2, c3, c4 values (2) Concatenate R, G, B that becomes the pseudocolor i...

casi 5 años hace | 1

Respondida
my code keep running continuously with no stop ... help appreciate
In your code, [while ... loop] has to be eliminated and then everything else works ok. % while true % To be eliminated ... ...

casi 5 años hace | 0

Respondida
How to plotting a 3D bar graph from 3 sets of data
Yes, it is viable to some extent what you want in MATLAB: Z = readmatrix('Mock_Data.xlsx'); ZData=Z; H = bar3(Z); for ii = 1...

casi 5 años hace | 1

| aceptada

Respondida
Fill array with called function using initial conditions. Eulers based.
There are a few variables are to be defined in your two fcn files, i.e.: %Cat position program %-----------------------------...

casi 5 años hace | 1

Respondida
How to ignore NaN in a string cell
A simple answer is e.g.: TEST = test(cellfun('isclass', test, 'char')) % All NANs removed An alternative solution is e.g.: t...

casi 5 años hace | 0

| aceptada

Respondida
Using variables from a .mat data file in a user-defined function
Note that the variable names stored and loaded from your *.mat file have to be consistent with the variable names called in your...

casi 5 años hace | 0

Respondida
Spread monthly data into days
You can import your data and easily convert them as you need using importdata() - see help DOC and convert date data into numb...

casi 5 años hace | 1

Respondida
How to convert a large set of variables in the MATLAB workspace into an Excel file?
Here is a nice discussion thread and help documentation: https://www.mathworks.com/matlabcentral/answers/589042-how-to-write-all...

casi 5 años hace | 0

Respondida
I have to automatically update excel after each run so that numbers are stored in different cells in number plate extraction. Can anyone help?
Probably, it is worth to try writematrix() to write your data in '.txt' or '.csv' or '.xls' with 'append' option on.

casi 5 años hace | 0

Respondida
How can I sort data in increasing order
Use sort() that sorts in an ascending order and then take the indexes that will be used for the others, OR put in a table using ...

casi 5 años hace | 0

Respondida
I am unable to display my output for my graph.
Here is a corrected code: t = 0:0.01:20; Vo = 90; angle = [10 25 45 65 85]; g = 9.81; yo = 0; mm = 0; for theta = angle...

casi 5 años hace | 0

| aceptada

Respondida
how inverse number ?
MATLAB has a built-in fcn to compute the iverse of a square matrix that is inv() or ^-1 ALso, to compute the inverse of non-sq...

casi 5 años hace | 0

Respondida
How to export figure or contour values into excel file
The simplest and easiest solution here is to employ fplot instead of ezplot. And from fplot() you can obtain numerical values an...

casi 5 años hace | 0

Respondida
Why do I receive incorrect result from ode45?
You can try to tighten the relative and absolute error tolerances, e.g.: OPTS = odeset('reltol', 1e-5, 'abstol', 1e-7); [z,con...

casi 5 años hace | 0

Respondida
Simulating dynamics for an autonomous system
There are a few different ways by which you can generate a, b, c. Here is one of the viable cases: a = rand(1, 100); % [0, ...

casi 5 años hace | 0

| aceptada

Respondida
two 3*3 matrix multiplication using for loop in matlab.
Maybe you want to perform elementwise mutliplication of two matrices, if so, : A.*B FOR or WHILE loop are not advised to use f...

casi 5 años hace | 0

Respondida
Generate 10 numbers from matrix
Based on what you've stated the following could be what you want to obtain: v1 = randi(10, 5, 5) %#ok % Is existing matrix...

casi 5 años hace | 0

Respondida
How to accumulate values ​​from time 1 to the last time
Here is one of the possible routines to read all 1e4 files and collect all data into a signle variable and the rest is relativel...

casi 5 años hace | 0

Respondida
how to stack 3D images from 2D images after semantic function.
There is a small err in the code. Here is the corrected part of it: for k = 1:numFiles % Starts at 1 fullFileName = fullf...

casi 5 años hace | 0

Respondida
Determining Order of flattening an array using colons
How about this: A = cat(3, eye(3), eye(3), eye(3)) B =reshape(A(:,:).',3,[])

casi 5 años hace | 0

Respondida
How to combine 2 tables with different variables into 1 table?
Note that join() works very well, but you should correctly define the two table to be joined. See this example: A = (1:5)'; B =...

casi 5 años hace | 0

Respondida
Matrix multiplication within a function not working
There are a couple of errs in the code. Here is the corrected version: function lutlum = lutlummer(image) for i = 1:1:256 ...

casi 5 años hace | 0

Respondida
Code-m file for Sampling
Could pl., show what you have done so far?

casi 5 años hace | 0

Respondida
How to add marker for the current point in animated line
Just a plot() with drawnow better simulates the animated plot: axis([0 20 -1 1]) x = linspace(0,20,1000); for k = 1:length(x)...

casi 5 años hace | 0

Respondida
Matrix multiplication within a function not working
There is an err, here is how it is to be: lutlum = HL.'*lutlum; % creates 2 - by - 256

casi 5 años hace | 0

Respondida
Shaded Standard Deviation Corridors
In your data, there are some missing data points (x, y, std) which must be removed and then everything works ok. Here is the cor...

casi 5 años hace | 0

Cargar más