Answered
Error when getting function to test testprime
The clear; clc makes your code into a script, and makes the declaration of testprime there into a local function for the scri...

2 years ago | 0

Answered
Ones function printing out
The ones is the output of your function. You are running the function by pressing the green Run button, which executes the funct...

2 years ago | 1

Answered
Hi I have a problem when I preform the convolution original image with kernel of ones as the size of the kernel increases the output is appearing totally white Image.
Image = imread('cameraman.tif'); Image ranges from uint8 0 to uint8 255 Image1 = double(Image); Image...

2 years ago | 0

Answered
Why does this code give me an error?
[bestX, fmin] = fmincon(objectiveFunctionForLocal, gBest, [], [], [], [], lb, ub, @(x) nonlinear_constraint(x), options, initial...

2 years ago | 0

Answered
Matlab figure: The legend replaces the graph completely and there is no graph
C:\Users\Elino\OneDrive\Documents\MATLAB\ENCI711\Copy_of_Publish Version\set.m You need to rename that file, or move it so that...

2 years ago | 1

| accepted

Answered
Matlab mobile doesn't execute startup.m at startup
The model of MATLAB Online is as-if it were continually running. ... Sort of. The reality is that when you leave a MATLAB Onli...

2 years ago | 0

Answered
Getting an indexing error when using functions
uexact = uexact + uelem(x1,x2,k,L); Okay, you are invoking uelem() on a scalar x1 out = integral(@(x) ff(x,x1,x2,k...

2 years ago | 1

| accepted

Answered
Error using imread>get_full_filename (line 566) File "gg(21).jpg" does not exist. Error in imread (line 375) fullname = get_full_filename(filename);
imds = imageDatastore('C:\Users\new\Testing',... 'IncludeSubfolders',true,... 'LabelSource','foldernames'); The d...

2 years ago | 0

| accepted

Answered
Looping through a cell array to differentiate and integrate
There are two major functions diff() When at least one of the parameters to diff() is a symbolic expression, or a symbolic func...

2 years ago | 0

| accepted

Answered
How to partition a matrix by sorting a column?
A= [ 73.90 123.17 1.00; 73.79 121.83 0.00; 70.64 74.46 1.00; 69.74 86.40 0.00] u = unique(A(:,3)); ...

2 years ago | 0

| accepted

Answered
I can't comput the following commands
Remove all of the if statements. And convert the && to & A1=sum(total>=90 & total<=100); fprintf('The number of A+ stu...

2 years ago | 0

Answered
How to perform an operation after reading the image?
readimageFcn=@(x) imagenorm(int16(dicomread(x))); There is some uncertainty here, as imagenorm() is not a defined Mathworks fun...

2 years ago | 0

| accepted

Answered
Will there be a Linux ARM binary?
There is no Linux ARM binary. My personal guess is that Mathworks will go for Windows ARM before going for Linux ARM.

2 years ago | 0

Answered
Append tables with a new variable
T1 = table([1:5].') T2 = table([6:8].', [3;1;4]) vn1 = T1.Properties.VariableNames; vn2 = T2.Properties.VariableNames; new_v...

2 years ago | 0

| accepted

Answered
Which version suits AGX Orin?
You cannot install MATLAB on AGX Orin.

2 years ago | 0

Answered
How to calculate and display electricity used in a month using fprintf?
KWH = input('How many KWH this month: '); BILL = 0.066 * KWH; fprintf('Your charge for %f KWH will be $%.2f\n', KWH, BILL)

2 years ago | 1

Answered
How to compute the following questions
You can use nnz(BooleanArray) or sum(BooleanArray) to get the number of selected results.

2 years ago | 0

Answered
"Undefined variable" error even though variable is defined
if frame1 == 1 Background1 = thisFrame1; else This does not define Background1 if frame1 ~= 1

2 years ago | 0

Answered
I drew this curve, using the code below. How can I remain only on the line with circles above it?
Refinement of your code: syms a omega % Given parameters omega_n =1; mu = 0.1; ...

2 years ago | 0

| accepted

Answered
How do I prevent the command that caused an error being displayed in the command line?
./my_executable xyz: Signal 127 That indicates that ./my_executable could not be found. You are not in the directory you though...

2 years ago | 0

Answered
How to create this table/matrix?
ForecastInfo = table(CIV.SYMBOL(1:10,:), ForecastDates', 'VariableNames', {'Symbol', 'Forcecast Dates'});

2 years ago | 0

| accepted

Answered
str2sym error
Work around: symfun('force(t)', sym('t')) or syms force(t)

2 years ago | 0

Answered
writetable or dlmwrite to save an array as a txt file
M = [ 1.0000 -26.2000 -31.7000 2.0000 -27.1000 -33.9000 3.0000 -25.5000 -30.2000 4.0000 -24.4000 -30...

2 years ago | 0

Answered
I keep getting the error message that the variables must be of data type double and it is currently of type sym.
%I'm unsure how else to run this code to solve the 10 eqn system where %the answer comes out in the correct form, please help ...

2 years ago | 1

| accepted

Answered
Hi, this is my code, I want to fit 36 graphs in one graph (36 rays in layout view)
N = 2048; L = 1e4; dx = 4e-3; [x0,y0] = meshgrid((-N/2:N/2-1)*dx); [xL,yL] = meshgrid((-N/2:N/2-1)*dx); [fx,fy] = meshgrid(...

2 years ago | 1

| accepted

Answered
Genetic algorithm gives same result everytime
You have a single variable that is integer constrained between 10 and 100. That is only 91 different values to search, at most -...

2 years ago | 0

| accepted

Answered
How can I displace x and/or y axes from existing positions?
There is no provided way to do this. You will have to turn axes off, and draw the axes yourself.

2 years ago | 0

Answered
Fastest possible prime number detection without using break or return
The fastest possible way of doing any computation depends upon the fine details of your CPU, and upon the fine details of how me...

2 years ago | 0

Answered
Processing Multiple Files at once.
[filelist,pathn] = uigetfile('*.*','Please Select a Par File in .dat or .txt', 'multiselect', 'on'); if isnumeric(filelist); er...

2 years ago | 0

| accepted

Answered
How can I skip the rest of an if statement?
if n > 1 while true if a == 1 disp('Haha') break % (Here is where I want to skip the res...

2 years ago | 0

| accepted

Load more