Answered
Setting elements of an array to be zero based on the values of a vector
A = [1 0 0; 0 1 1; 1 1 0] B = [1 3 5]; [m,n]=size(A); I=B(B<=m); J=B(B<=n); A(I,:)=0; A(:,J)=0

4 years ago | 0

Answered
How to display structs only in a struct with fields?
t='11'; s.q=1; S=struct('a',t,'b',s,'c',s,'d',[s,s]) p=reshape( namedargs2cell(S) , 2,[]); keep=structfun(@(f)isstruct(f)...

4 years ago | 0

Answered
How to display structs only in a struct with fields?
t='11'; s.q=1; S=struct('a',t,'b',s,'c',s,'d',t) aTable=struct2table(S); disp( table2struct(aTable(:,vartype('struct')...

4 years ago | 0

| accepted

Answered
Setting an element of an array to zero based on the values of a vector
A(B,B)=0;

4 years ago | 0

| accepted

Answered
DIvide an area into sectors
load xyc x0=350; y0=339; [X,Y]=deal(xyc(:,1), xyc(:,2)); theta=180/pi*cart2pol(X-x0,Y-y0); theta(theta<0)=360+theta(thet...

4 years ago | 1

Question


Are there any convolutional networks in the DL Toolbox whose output layers are implemented as fullyConnectedLayers?
Within the library of neural networks offered through the Deep Learning Toolbox, are there any convolutional neural netwoks that...

4 years ago | 1 answer | 0

1

answer

Answered
How to find minimum of a 3D function in a double for loop plotted on a slice?
figure count = 1; for h = 1000:1000:4000 for fov = [0.2, 0.5, 1, 2, 5, 10] .... tf...

4 years ago | 0

| accepted

Answered
num2str use for a product of two queried variables
Hard to be sure if it's the cause, but in the second version, you have mistyped num2str.

4 years ago | 0

Answered
eliminating isolated areas in a matrix
How can I check to see if when I combine the 4 together that I do not create areas that are "isolated" Use bwconncomp to count ...

4 years ago | 0

Answered
Removing row from logical array then restore the remaining dataset
keeprows=~any(outliers,2); myTable=myTable(keeprows,:);

4 years ago | 0

Answered
Create an array containing indeces and value
Would this be a simplified example fo what you mean? [A,B]=ndgrid(1:5) C=A.^2+B.^2

4 years ago | 0

Answered
Newton method for solving a nonlinear system of equations!
How to calculate the Jacobian of the function g. If Ja is the Jacobian of A{i}(:), then the Jacobian Jgof g will be Jg=kron(y0{...

4 years ago | 0

| accepted

Answered
how to apply an equation including "i,j", "i+1,j" through a loop "for"
Instead of a for-loop, you should use conv2() https://www.mathworks.com/help/matlab/ref/conv2.html which should allow you to ...

4 years ago | 0

Answered
starting Matlab is long
It tends to start up faster if you have an SSD, rather than an HDD. Also, newer Matlab releases supposedly have faster start-u...

4 years ago | 0

Answered
How to adjust TEXT in "regionprops" ?
The question doesn't seem to have anything to do with regionprops really, just with your call to text(). morespace=5; figure...

4 years ago | 1

| accepted

Answered
Adding a point (x,y,'+') to parallelplot
I think you have to embed the point in the parallel data. Parallel plots are not meant to be thought of as Cartesian plots. x=5...

4 years ago | 1

| accepted

Answered
How to put marker at specific x value on line?
There seem to be a lot of threads about that lately, https://www.mathworks.com/matlabcentral/answers/1696205-how-to-indicate-th...

4 years ago | 0

Answered
Why isn't my while loop terminating?
The termination condition of the while loop depends on windowLength, but nothing inside the while loop makes any modifications t...

4 years ago | 0

Submitted


Convert linear functions to matrix form
Obtaining the matrix representing a given linear function

4 years ago | 626 downloads |

0.0 / 5

Answered
Can matlab license be connected to two computers
Depends on the license type. With an individual license you can install on up to 4 computers and have 2 running at the same time...

4 years ago | 0

| accepted

Answered
minimization of a sum with varying number of variables using fmincon
J=minimizeIt(10) J=minimizeIt(20) function J=minimizeIt(m) fun=@(x) -(1:m)*log(x(:)); x0=rand(m,...

4 years ago | 0

| accepted

Answered
Getting error'"Objective function is undefined at initial point. Fminunc cannot continue''
Check what value is being returned by your function at the initial point.

4 years ago | 1

Answered
Writing class in matlab with structures and not allowing user to modify them.
Couldn't you make the properties private/protected in mod and kal?

4 years ago | 0

Answered
Moving graph along x-axis
Let's call your 3 data sets (x0,y0), (x1,y1), (x2,y2) where (x0,y0) are your target data points. Then I might try something like...

4 years ago | 0

Answered
Find complementary column combination of a matrix
Do you need all combinations or just one of the minimium-length combinations? If the latter, then download minL1intlin https://...

4 years ago | 0

Answered
How to get Matlab stop on my file upon error?
If you execute at the command line, >> dbstop if caught error and then rerun the app, I think you will find that the debugger ...

4 years ago | 3

Answered
Execution of Two Independent parfor Loops in the Same Code
The second loop will be run only after the first is complete. It's not really clear how running simultaneously would even be p...

4 years ago | 0

| accepted

Answered
How can i implement following sum notation ?
function y=soru(x,n) y=sum( (3./x).^(1:n) ); end

4 years ago | 0

Answered
Why there is Difference in the Solutions of global/ local optimum value obtained by genetic algorithm and global search using fmincon?
Perhaps you were wrong to assume that fmincon alone was failing to find the global minimum. You can never be certain that a glob...

4 years ago | 0

Answered
How to change the confidence bounds in the curve fitting tool
You can use confint() to get the confidence interval for an arbitrary confidence level, ci = confint(fitresult,level)

4 years ago | 0

| accepted

Load more