Réponse apportée
Performance metrics of an algorithm
you can find the quadratic error of each parameter and then multiply it by a constant value that you consider to give greater or...

plus de 6 ans il y a | 0

Réponse apportée
question plese help due tomorrow
here the Solution: clear;clc; fun=@(x) 100*((x/0.6).^0.625).*((1-x)/0.4).^(-1.625)-70; %Formula for 'L', (L=70) SolutionX=fso...

plus de 6 ans il y a | 0

Réponse apportée
Populate an array with n number of points based on probability
solution: array15x15filled0to10=randi([0,10],15);%put your data probability array here arraypoints=zeros(15); n = 25; xy = ...

plus de 6 ans il y a | 1

| A accepté

Réponse apportée
How can i do the summation of every row?
replace yourtablename for the real name value=sum(yourtablename{:,111})

plus de 6 ans il y a | 0

Réponse apportée
How can I truncate a random generated exponentail distribution?
I leave you an idea that can be useful, in R numbers are generated with an exponential distribution in the range you want : n...

plus de 6 ans il y a | 1

Réponse apportée
The value assigned to variable 'g3' might be unused
It is not a mistake, it is a warning and it is because that value that you calculate of g3 for the first time you do not use it ...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
Write a MATLAB program to find integration of 'x^5×cos 5x'?.
syms x fun=x^5*cos(5*x); integration=int(fun)

plus de 6 ans il y a | 0

Réponse apportée
Write a MATLAB program to find integration of x^5×cos 5x.
solution : syms x fun=x^5*cos(5*x); integration=int(fun)

plus de 6 ans il y a | 0

A résolu


Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

plus de 6 ans il y a

A résolu


Add two numbers
Given a and b, return the sum a+b in c.

plus de 6 ans il y a

Réponse apportée
Finding a linear equation
solution example: x=rand(1,20); y=rand(1,20); z=3*x+4*y+7; b=regress(z',[x' y' ones(size(x'))]); fprintf('Equation is z=...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
How to calculate activation function value
"n" is the output of the second layer before going through the transfer function, therefore, and

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
Non Zero element appear first with keeping the same size of the matrix?
solution : A = [1 0 2 3;2 0 0 5; 3 0 0 1; 0 0 1 5]; A(A==0)=nan; A=sort(A,2); A(isnan(A))=0; disp(A)

plus de 6 ans il y a | 1

| A accepté

Réponse apportée
Matlab won't plot my 3d graph
it work well close all figure x=20.*sin(t); y=20.*cos(t); z= 10-(t./4).^2; plot3(x,y,z)

plus de 6 ans il y a | 0

Réponse apportée
Create matrix (30 x 12) with numbers from 1 to 12 without repetition without any repetitions of following numbers for each row
here the solution: A=randperm(12); iterac=500; for k=1:30-1 it=0; while true it=it+1; b=randperm(12); c2=[diff(b); ...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
Adding Matrices to struct
solution n = 2 ; M = cell(n, 2) ; for k = 1 : n A = [1 2 3; 4 5 6;7 8 9]; M{k,1} = A ; M{k,2} = A ;...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
Error with function handle syntax
solution: clc; clear; n=100; x = rand(n,1)*10; x = sort(x); f = @(u)exp(-u./2).*sin(2.*u./1); y = f(x); y_perturb = zer...

plus de 6 ans il y a | 0

Réponse apportée
Asking User a Question with Variables
solution: answer=inputdlg({'nodes'}); nodes=str2double(answer(1,1)); nodematrix=Inf(nodes); A=0; B=1; while A<nodes ...

plus de 6 ans il y a | 1

| A accepté

Réponse apportée
How to rearrange a matrix according to the repitition of the elements/arrays in the matrix?
example solution: A=[1 2 3 574 0 0; 1 2 3 0 -95 0; 4 5 6 580 0 0; 4 5 6 0 200 0]; [z, ~, di]=unique(A(:,1:3),'rows'); newa=...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
How can i use Genetic algorithm in simulink for PID?
To perform a genetic algorithm in simulink and find optimal parameters of a pid controller, the first thing you have to do is de...

plus de 6 ans il y a | 0

Réponse apportée
"Scaling" a matrix of matrices into a supermatrix
easy solution: A=[1,2,5,6;3,4,7,8;9,10,13,14;11,12,15,16] B=cell2mat(repelem( mat2cell(A,[2 2],[2 2]),2,2))

plus de 6 ans il y a | 1

| A accepté

Réponse apportée
How to plot a graph with 3 different length vectors, vectors are generated by rand() function.
solution: close all x= rand(1,20000); y= rand(1,20000); z=rand(1,20000); f=or(or(x>0.9,y>0.9),z>0.9); plot3(x(f),y(f),z(f...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
NaN error when trying to display calculation result
solution: a = get(handles.A_Value,'String'); b = get(handles.B_Value,'String'); c = get(handles.C_Value,'String');...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
How to use export_fig to save my plots in transparent background
I recommend using a file Exchange export_fig that has many more features that are not currently documented in Matlab

plus de 6 ans il y a | 0

Réponse apportée
using subplot with imaginary and real
yes in that case, graph real and imaginary part, the only recommendation is that you put 1i instead of i so that it is not confu...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
Solving for Exponential Vairable
syms t a = 600; r = .10; y = 600; eq = y - a * (exp(r*t)) == 0; tsol = vpa(solve(eq,t))

plus de 6 ans il y a | 1

| A accepté

Réponse apportée
Modify the Haaland Function
here the solution: function f=Haaland(releps,Re) if Re<=2300 %if Re <= 2300 f=64/Re; else % if Re > 2300 answer=0.25/...

plus de 6 ans il y a | 0

Réponse apportée
vertcat error, can't find what's wrong, new to MATLAB
your mistake is to place a "," instead of a decimal point 2.282 instead of 2,282 F = [2.85*A(1,1)*sin(A(2,1))-0.285*A(1,1)*cos(...

plus de 6 ans il y a | 1

| A accepté

Réponse apportée
Manipulating location matrix in the Point cloud data
Hi, you can pass the information to another object : ptCloudold = pointCloud(rand(100,3,'single')); newptcloud= pointCloud(p...

plus de 6 ans il y a | 0

Réponse apportée
how to write a matlab code that sum all nonzero elements that divisible by 5 in a vector
V=input('input vector: '); elements=V(and(V~=0,mod(V,5)==0)); fprintf(' sum = %4.2f\n product=%4.2f\n',sum(elements)...

presque 8 ans il y a | 0

Charger plus