Respondida
Matlab SVD & PCA - which singular values belongs to which variables?
assuming that *X* is your matrix : mu = mean(X);%average of each column Xmean = bsxfun(@minus, X ,mu);%data centered ...

casi 8 años hace | 2

Respondida
subtract rows under a condition
solution: dataA = [1 1 1 2 1 3 1 4 2 5 2 6 2 7 3 8 3 9 3 10 4 11 4 12 4 13 5 14 5...

casi 8 años hace | 0

Respondida
How to manually calculate a Neural Network output?
you missed several normalization parameters, here I leave the solution : [x, y] = crab_dataset; size(x) % 6 x 200 ...

casi 8 años hace | 2

| aceptada

Respondida
Convolutional Neural Networks and GPU GTX960m
I recommend that you change the size of the images, since it is not necessary to have a very large size, the convolutional neura...

casi 8 años hace | 0

Respondida
How do I make input/output in a function a vector?
one cycle is missing function gradesRounded = roundGrade(grades) gradesRounded=grades; for k=1:numel(grades) if gr...

casi 8 años hace | 0

| aceptada

Respondida
Line detection in an image!!
imo = rgb2gray(imread('white_3.jpg')); se = strel('line',17,5); sim = imdilate(imo, se); se2 = strel('disk', 1); s...

casi 8 años hace | 0

Respondida
MultiLayer Neural Network with inputs forwarded to each Layer
You can do this by code in the following way: trainFcn = 'trainlm'; % Levenberg-Marquardt backpropagation. hiddenLayerS...

casi 8 años hace | 1

| aceptada

Respondida
How to create a function with an algebraic input
you can do like this: function f=g(y, x0 , epsilon) y=str2func(['@(x) ' y]); %your code but your input "y" need ...

más de 8 años hace | 0

Respondida
How to create new folder for each iteraton
an example: for k=1:5 %for k=1,2,3,4,5 name=['folder' num2str(k)];%new folder name mkdir(name)%create new folder ...

más de 8 años hace | 1

| aceptada

Respondida
Executing two loops at the same time
you can do like this: n = input('Your number = '); i = 1; while n ~= 1 while rem(n,2) == 0 && n ~= 1 ...

más de 8 años hace | 0

| aceptada

Respondida
How to Create Image Input Layer using Neural Network Using JPG Images ?
You must take into account that an image is a matrix of pixels, if it's an colored imaged then its size is length*width*3 (which...

más de 8 años hace | 0

Respondida
How I can add more hidden layers on the nftool code that I exported from the nnstart GUI?
you can use : trainFcn = 'trainlm'; hiddenLayerSize = 23; numberhiddenlayers=2;%more hidden layers net = fitnet...

más de 8 años hace | 1

| aceptada

Respondida
find observations with nonconsecutive numbers
like this: A=[55; 56; 57; 58; 26; 27; 28]; observations=A([1; diff(A)]~=1);

más de 8 años hace | 1

Respondida
Neural network training Maximum mu reached
Hello, Matlab selects a default Mu value of 0.001, but you can change it using the command: Net.trainParam.Mu = 0.0001; With ...

más de 8 años hace | 2

| aceptada

Respondida
How to control the apperance of a "ui control" from another gui?
from gui2 : Since version R2014b : a=findall(groot, 'Name', 'myguide1'); %myguide1 is the file name for guide1 set(fin...

más de 8 años hace | 0

| aceptada

Respondida
Artificial Neural Network - Equations?
Neural networks are very complex models including a lot of parameters, so a neural network that gives an equation as an answer d...

más de 8 años hace | 1

Respondida
Use of sendmail function to send an email from a gmail account
solution: setpref('Internet','SMTP_Server','smtp.gmail.com'); setpref('Internet','E_mail','myemailaddress@gmail.com'); ...

más de 8 años hace | 6

| aceptada

Respondida
Negative output neural networks
the output of the neural network depends on the transfer function of the output layer, if the results are negative you probably ...

más de 8 años hace | 0

| aceptada

Respondida
Finding the cell indices of a cell contains a specific text
I can help you with what you need in this example, it will give you the indices you need : TEXT={'103.9685,10:27:37,2016-02...

más de 8 años hace | 0

| aceptada

Respondida
How to transpose a matrix
you can use this: A = [1 8 1 5 1 4 2 6 2 7 2 2 2 5 7 6 7 4 7 8 9 9 9 1 9 2 9 6 9...

más de 8 años hace | 0

Respondida
How do you extract certain rows from one matrix thats first column has specific values and create a new matrix containing those rows?
You can use the function "mod" M =[0.00023 1 2 3 4 5; 0.007 1 2 3 4 5; 0.01 1 2 3 4 5; 0.0127 1 2 3 4 5 0.02 1 ...

casi 9 años hace | 0

| aceptada

Respondida
Eulers Number Code and Questions
You Can use this: function [est,n ] = approximate_e( delta ) n=-1; est=0; while abs(exp(1)-est)>delta ...

alrededor de 9 años hace | 1

Respondida
how to refer an element in a column to related a value in another cloumn?
fileID = fopen('text.txt'); C = textscan(fileID,'%s %s %s %s %s %s %s','Delimiter',','); fclose(fileID); C=[C{:}]; ...

más de 9 años hace | 0

Respondida
How to make the slider move while the audio file is playing ?
an example : load handel player = audioplayer(y,Fs); f=uicontrol('Style','slider'); % set(player,'TimerFcn',{@eje...

más de 9 años hace | 0

Respondida
how can I write a function file using FOR loop to find the sum: A + A^2 + A^3 +···+ A^n when A is a square matrix?
you can use ".^" function [s] = function1(A,n) s=zeros(size(A)); for i=1:n s=s+A.^n; end end

más de 9 años hace | 0

| aceptada

Respondida
Ayuda con grafico de matrices. Graficar solo un término que va a ir variando.
solo se agrega una variable dentro del for que vaya guardando el primer dato de esa última matriz y una vez termina el ciclo for...

más de 9 años hace | 1

Respondida
Metaheuristics vs exact method
Metaheuristic methods are mostly used in cases whether using an exact method has a very high computational cost or there is no p...

más de 9 años hace | 0

| aceptada

Respondida
how to remove that element from cell vector which is identical to given argument or contains the argument as a substring. And return cell vector without that argument.
str={'hi' 'me' 'if' {'yes' 'no' 'hi'} {'for' 'while' 'all'} 'hi'}; %example element='hi'; %remove 'hi' str(strcmp(str,el...

más de 10 años hace | 0