photo

Ahmed


2013년부터 활동

Followers: 0   Following: 0

메시지

통계학

All
  • Knowledgeable Level 2
  • First Answer
  • Solver

배지 보기

Feeds

보기 기준

질문


Starting and executing code in parallel is slower than expected
I installed MATLAB 2016a on three systems with different hard- and software and would like to use the Parallel Computing Toolbox...

대략 7년 전 | 답변 수: 0 | 1

0

답변

답변 있음
How to find locations of multiple values within a matrix.
The function _ismember_ is what you are looking for. x=[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]; y...

거의 9년 전 | 6

| 수락됨

답변 있음
Stopping the neural network by tr.gradient
Maybe you are looking for the property “trainParam.min_grad”. net = fitnet(10); net.trainParam.min_grad % default 1e-7 n...

9년 초과 전 | 2

| 수락됨

문제를 풀었습니다


Beginner's Problem - Squaring
Try out this test problem first. Given the variable x as your input, square it by two and put the result in y. Examples: ...

거의 10년 전

답변 있음
how to compare the class of input and output,and display the misclassification,how much percentage it is classified properly
To just get the accuracy it is only required to count the number of matches and divide by the total number of observations: ...

대략 10년 전 | 0

답변 있음
Simple question regarding plot
Given_data = rand(10,1); Obtained_data = rand(10,1); plot(zeros(size(Given_data)),Given_data,'r+'); hold on xlabel...

대략 10년 전 | 0

| 수락됨

답변 있음
how compute color std fast
The std function can operate on any dimension. For details see the help of 'std'. newimg = std(imd,0,3); It might be fas...

대략 10년 전 | 1

답변 있음
How to train a Neural Network with an input data set that comprises of numeric values as well as nominal variables (such as the base fluid used which could be either 'Water', 'Oil' or 'Slickwater')?
Try to code your nominal variables as dummy binary variables, then input that into your neural network. nomvar = nominal(ra...

거의 11년 전 | 0

답변 있음
how get k space data from MRI dicom images
Note, that I am by no means an expert and that this question is not even related to Matlab. However, here is my opinion: Answ...

대략 11년 전 | 0

답변 있음
HOW TO PERFORM THIS EQUATION IN MATLAB?u=∑_(i=1)^t▒(i*p_i/w)
Here is a minimal example with random data. The last line is the actual answer to your question. t = 100; p = rand(1,t);...

대략 11년 전 | 0

| 수락됨

답변 있음
How should I make A and b matrix in fmincon function?
fmincon is for minimization of a function under linear constraints A*X<=b. As you gave no information about your constraints, no...

대략 11년 전 | 0

| 수락됨

문제를 풀었습니다


Swap the first and last columns
Flip the outermost columns of matrix A, so that the first column becomes the last and the last column becomes the first. All oth...

대략 11년 전

문제를 풀었습니다


Most nonzero elements in row
Given the matrix a, return the index r of the row with the most nonzero elements. Assume there will always be exactly one row th...

대략 11년 전

문제를 풀었습니다


Make a checkerboard matrix
Given an integer n, make an n-by-n matrix made up of alternating ones and zeros as shown below. The a(1,1) should be 1. Example...

대략 11년 전

문제를 풀었습니다


Find all elements less than 0 or greater than 10 and replace them with NaN
Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN. Example: Input ...

대략 11년 전

답변 있음
Column-wise dot-products of two gpuArrays
A possible solution (I hope it will be helpful to someone): C = sum(gpuArray(A).*gpuArray(B));

대략 11년 전 | 0

| 수락됨

문제를 풀었습니다


Remove any row in which a NaN appears
Given the matrix A, return B in which all the rows that have one or more <http://www.mathworks.com/help/techdoc/ref/nan.html NaN...

대략 11년 전

문제를 풀었습니다


Select every other element of a vector
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

대략 11년 전

문제를 풀었습니다


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

대략 11년 전

문제를 풀었습니다


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

대략 11년 전

문제를 풀었습니다


Pizza!
Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...

대략 11년 전

문제를 풀었습니다


Swap the input arguments
Write a two-input, two-output function that swaps its two input arguments. For example: [q,r] = swap(5,10) returns q = ...

대략 11년 전

문제를 풀었습니다


Is my wife right?
Regardless of input, output the string 'yes'.

대략 11년 전

문제를 풀었습니다


Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

대략 11년 전

문제를 풀었습니다


Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

대략 11년 전

질문


Column-wise dot-products of two gpuArrays
Is there a good way to compute column-wise dot-products of two matrices of same size when stored on the GPU? Specifically, say A...

대략 11년 전 | 답변 수: 1 | 0

1

답변

답변 있음
How to declare kfun function in svmtrain
data = randn(100,10); groups = rand(100,1)>0.5; g = 1; r = 1; svmstruct = svmtrain(data, groups, ... 'Kernel_...

11년 초과 전 | 0

답변 있음
Error:Undefined function or method 'gpuArray' for input arguments of type 'uint8'
gpuArray is a function of the 'Parallel Computing Toolbox'. Without this toolbox, the function can not be called. The command 'v...

11년 초과 전 | 0

답변 있음
Script to run a Matlab Script on the event of crash
The "try .. catch .. end" construct might be what you are looking for. In case an error occurs between try and catch, then the c...

11년 초과 전 | 0

답변 있음
How do I average rows which contain the same first to elements?
This solution is not very elegant, but should work. There is room for improvement, though. uA = unique(A(:,1:2),'rows'); ...

11년 초과 전 | 1

| 수락됨

더 보기