Answered
Index exceeds the number of array elements (2).
max() of a 2d array is a vector so I is a vector. all_results(I) is a vector. You are trying to assign that vector to a scalar l...

4 years ago | 0

| accepted

Answered
How can the script decide when to send a variable as a function input or not?
No mask flag is needed function processedImage = image_processing_function (filename, mask_BW) image = double(imread (fi...

4 years ago | 1

| accepted

Answered
How to use indexing to identify data in data(1, :) from points identifed in data(2,:)?
You have a right-hand side expression of the form (A, (B, C)) That has no meaning in MATLAB. MATLAB does not define a...

4 years ago | 0

| accepted

Answered
Is the Matlab feature "Ctrl+Scroll to increade/decrease value" still present in 2021b or newer?
No, and it is not expected to return. MathWorks recommends using the Livescript widgets that permit the user to modify a value. ...

4 years ago | 1

Answered
how to solve "Matrix dimensions must agree."
T(P+1,m,k)=(dt/Cm(m))*(((T(p,m)-T(p,m-1))/Rm(m))+((T(p,m+1)-T(p,m))/Rm(m))+((T(p,k)-T(p,k-1))/Rk(k)))+T(p,m,k); nothing pre...

4 years ago | 0

Answered
Trying to plot a 2D K vs Kh giving me the bellow error (Warning: Matrix is singular to working precision.) How do I solve this?
In MATLAB the / operation is Matrix Right Division. A/B is approximately A*pinv(B) where * is algebraic matrix multiplication an...

4 years ago | 0

Answered
I generate some points with latin hypercube sampling and also by for loop I tried to separate out(i,j) to 4 kinds for plotting .but it only plots like below picture.
if out(i,j)>5 scatter(size(LHsampling,1),out(i,j),'s','r'); hold on; elseif out(i,j)>50 Un...

4 years ago | 0

| accepted

Answered
How do I fix this error?
if states(j,1) == 0 [a]= 1; elseif j >= (2^i) [a] =0; end what i...

4 years ago | 0

| accepted

Answered
How to generate repeat column labels
array2table(data,'variablenames', "Cell" + (1:100))

4 years ago | 1

| accepted

Answered
How do I map grayscale values to get temperature?
"I want to know if i can use these GL values to get corresponding temperature with any equation or any function." No, there i...

4 years ago | 0

Answered
How can we convert a number into a string value with the exact number of digits present in the number?
The digits "actually present" in the number assigned are 0.0199154999999999991755483819133587530814111232757568359375 The n...

4 years ago | 0

Answered
An error "Assumed incident matrix must contained negative value for link out." which occurs in creating a graph object.
You are using https://www.mathworks.com/matlabcentral/fileexchange/12648-graph-package That code does not support passing in ...

4 years ago | 1

| accepted

Answered
i can't figure out what to do , and it's urgent , need your help please !
https://github.com/petercorke/robotics-toolbox-matlab

4 years ago | 0

Answered
round to 2 decimal places but still have more than 2 decimal places when storing
2 and 100 are relatively prime, so it is not possible for any finite base 2 fractional representation to *exactly* represent 1/1...

4 years ago | 1

Answered
plot textdata with NaN
T = readtable('https://www.mathworks.com/matlabcentral/answers/uploaded_files/1002155/owid-covid-data_2020-21.csv', 'VariableNam...

4 years ago | 0

Answered
how to extract the watermark after decryption. please help I am getting an error in watermark extraction steps. Thank you in advance
for i=1:1:70000 x(i+1)=l*x(i)*(1-x(i))+b*y(i)*y(i)*x(i)+a*z(i)*z(i)*z(i); y(i+1)=l*y(i)*(1-y(i))+b*z(i)*z(i)*y(i)+a...

4 years ago | 1

Answered
Iterative solution to approach desired value
fzero() or fsolve(). If you need to be able to look at the complete source code then https://www.mathworks.com/matlabcentral...

4 years ago | 0

| accepted

Answered
Matlab gives back ''symsum'' formula but not a value
Wolframalpha calculates the first sum numerically, not able to find a closed form for it. What reason do you have to expect t...

4 years ago | 0

Answered
Baseline Criteria: How to read discrete data from excel rather than continuous data.
https://www.mathworks.com/help/simulink/slref/fromspreadsheet.html configure Interpolation to "zero order hold"

4 years ago | 0

Answered
Image file saving location
outdir = 'C:\Users\leehj\Desktop\aaa'; for i = 1:5 h = imagesc(X, Y, Z(:,:,i)); xlim([-2 2]); ylim([-1 1]); fname ...

4 years ago | 0

| accepted

Answered
Can I use the Guide function of MATLAB to create GUI in Raspberry Pi?
No, not a chance. What is supported for the Raspberry Pi is to use Simulink to send images (possibly computed) to the Raspberry...

4 years ago | 0

| accepted

Answered
So i have a vector of [1x2e6] of frequency data , so I would like to create a loop so that it stores 10 0.1ms (millisecond) this frequency data and fprint it.
Number_per_group = 10; in_groups = buffer(YourSignal, Number_per_group); fmt = [repmat('%8.5f ', 1, Number_per_group - 1), '...

4 years ago | 0

Answered
Since when has it been possible to dot-index the output of a class method?
Since R2019b. https://www.mathworks.com/help/matlab/release-notes.html?category=language-programming&rntext=&startrelease=R2019...

4 years ago | 2

| accepted

Answered
cant read the serial port!!!
https://www.mathworks.com/help/matlab/ref/serialport.html feof() is not defined for serialport objects. It was defined for se...

4 years ago | 0

Answered
I want to design a divider using cordic function, for high number / low number (30/2) can anyone help me.?
Do not start with i=1. Start with i being the negative of the number of bits before the decimal place. I believe that your el...

4 years ago | 0

| accepted

Answered
magnetic resonance spectroscopy imaging
* use a higher quality device with a stronger magnetic field * have the device calibrated by experts * make sure that the room...

4 years ago | 0

| accepted

Answered
plot textdata with NaN
Give up on reading the file that way. Use readable() instead.

4 years ago | 0

Answered
How can I solve this error about nargout function?
(That looks like GUIDE code) You are trying to do code generation with variable numbers of output. MATLAB Coder is not able t...

4 years ago | 0

Answered
How to plot 2D location vs corresponding data in MATLAB
You can create a triangulation object and then use trimesh() to plot the data. Or you can create a scatteredInterpolant() obj...

4 years ago | 0

Answered
Simulink fixed-step size protected variable name
"Is there any protected variable name for the Fixed-step size solver property pane that can be used in a block?" No, there is...

4 years ago | 0

Load more