Beantwortet
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 ...

fast 8 Jahre vor | 2

Beantwortet
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...

fast 8 Jahre vor | 0

Beantwortet
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 ...

fast 8 Jahre vor | 2

| akzeptiert

Beantwortet
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...

fast 8 Jahre vor | 0

Beantwortet
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...

fast 8 Jahre vor | 0

| akzeptiert

Beantwortet
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...

fast 8 Jahre vor | 0

Beantwortet
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...

fast 8 Jahre vor | 1

| akzeptiert

Beantwortet
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 ...

mehr als 8 Jahre vor | 0

Beantwortet
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 ...

mehr als 8 Jahre vor | 1

| akzeptiert

Beantwortet
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 ...

mehr als 8 Jahre vor | 0

| akzeptiert

Beantwortet
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...

mehr als 8 Jahre vor | 0

Beantwortet
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...

mehr als 8 Jahre vor | 1

| akzeptiert

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

mehr als 8 Jahre vor | 1

Beantwortet
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 ...

mehr als 8 Jahre vor | 2

| akzeptiert

Beantwortet
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...

mehr als 8 Jahre vor | 0

| akzeptiert

Beantwortet
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...

mehr als 8 Jahre vor | 1

Beantwortet
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'); ...

mehr als 8 Jahre vor | 6

| akzeptiert

Beantwortet
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 ...

mehr als 8 Jahre vor | 0

| akzeptiert

Beantwortet
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...

mehr als 8 Jahre vor | 0

| akzeptiert

Beantwortet
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...

mehr als 8 Jahre vor | 0

Beantwortet
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 ...

etwa 9 Jahre vor | 0

| akzeptiert

Beantwortet
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 ...

mehr als 9 Jahre vor | 1

Beantwortet
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{:}]; ...

mehr als 9 Jahre vor | 0

Beantwortet
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...

mehr als 9 Jahre vor | 0

Beantwortet
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

mehr als 9 Jahre vor | 0

| akzeptiert

Beantwortet
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...

mehr als 9 Jahre vor | 1

Beantwortet
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...

mehr als 9 Jahre vor | 0

| akzeptiert

Beantwortet
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...

fast 11 Jahre vor | 0