Feeds
답변 있음
why am I getting error "Undefined function or variable"
Thank you all for replying me so fast and early. The problem is solved when I restarted my computer and then Matlab started doin...
why am I getting error "Undefined function or variable"
Thank you all for replying me so fast and early. The problem is solved when I restarted my computer and then Matlab started doin...
거의 7년 전 | 0
질문
why am I getting error "Undefined function or variable"
I have defined a variable called "bestDimen". There is no error. I crosschecked many times. The script is also correct. It was w...
거의 7년 전 | 답변 수: 2 | 0
2
답변질문
How to plot 3D scatter plot with legends?
I want to plot 3D scatter plot, change in colour with the label attached to the data point. Is it possible in Matlab or simply s...
7년 초과 전 | 답변 수: 1 | 0
1
답변질문
How to edit confusion matrix figure in matlab?
For example, I have added a figure of confusion matrix generated in Matlab. I don't want the circled things information. How not...
7년 초과 전 | 답변 수: 1 | 0
1
답변질문
How to read text file in matlab?
I have a text file. The example file attached here. Could you tell me please how to read it in table format? The 'dlmread' forma...
거의 8년 전 | 답변 수: 1 | 0
1
답변질문
K-cross validation ANN
Check my following code, if there is any error (may be logical) let me know. Thank You. clc;clear all; close all; %traini...
거의 8년 전 | 답변 수: 0 | 0
0
답변질문
how to calculate the classification accuracy in neural network toolbox?
net=patternnet(10); [net,tr]=train(net,inputs,targets); outputs=net(inputs); [values,pred_ind]=max(outputs,[],1...
거의 8년 전 | 답변 수: 3 | 1
3
답변질문
Is it necessary to initialize weights and biases while training neural network? If yes then how to initialize it?
* I am using "patternnet" function for classification purpose. Is it necessary to initialize weights and biases with a proper nu...
거의 8년 전 | 답변 수: 1 | 0
1
답변질문
How not to normalize the data in patternnet function and how to do K-fold cross validation technique?
I want to do classification using ANN 'patternnent' function. I am new to ANN. I have already normalised data and also divided i...
거의 8년 전 | 답변 수: 1 | 0
1
답변질문
How to read large size excel files in matlab?
I have a file of 30000 rows and 1026 columns. If I use "xlsread" matlab functions then it takes about 6 to 7 minutes to read. ...
대략 8년 전 | 답변 수: 0 | 0
0
답변문제를 풀었습니다
Back to basics 1 - Saving
Covering some basic topics I haven't seen elsewhere on Cody. Given an input variable 'x', save it to disk in a file named 'co...
9년 초과 전
문제를 풀었습니다
Who Has the Most Change?
You have a matrix for which each row is a person and the columns represent the number of quarters, nickels, dimes, and pennies t...
9년 초과 전
문제를 풀었습니다
Bullseye Matrix
Given n (always odd), return output a that has concentric rings of the numbers 1 through (n+1)/2 around the center point. Exampl...
9년 초과 전
문제를 풀었습니다
Target sorting
Sort the given list of numbers |a| according to how far away each element is from the target value |t|. The result should return...
9년 초과 전
문제를 풀었습니다
Create a row array using double colon operator
Create a row array from 9 to 1, using the double colon operator.
9년 초과 전
문제를 풀었습니다
Distance walked 1D
Suppose you go from position 7 to 10 to 6 to 4. Then you have walked 9 units of distance, since 7 to 10 is 3 units, 10 to 6 is 4...
9년 초과 전
문제를 풀었습니다
Fahrenheit to Celsius using multiple statements
Given a Fahrenheit value F, convert to a Celsius value C. While the equation is C = 5/9 * (F - 32), as an exercise use two state...
9년 초과 전
문제를 풀었습니다
Return the largest number that is adjacent to a zero
This example comes from Steve Eddins' blog: <http://blogs.mathworks.com/steve/2009/05/27/learning-lessons-from-a-one-liner/ Lear...
9년 초과 전
문제를 풀었습니다
The Goldbach Conjecture
The <http://en.wikipedia.org/wiki/Goldbach's_conjecture Goldbach conjecture> asserts that every even integer greater than 2 can ...
9년 초과 전
문제를 풀었습니다
The Hitchhiker's Guide to MATLAB
Output logical "true" if the input is the answer to life, the universe and everything. Otherwise, output logical "false".
9년 초과 전
문제를 풀었습니다
Which values occur exactly three times?
Return a list of all values (sorted smallest to largest) that appear exactly three times in the input vector x. So if x = [1 2...
9년 초과 전
문제를 풀었습니다
How to find the position of an element in a vector without using the find function
Write a function posX=findPosition(x,y) where x is a vector and y is the number that you are searching for. Examples: fin...
9년 초과 전
문제를 풀었습니다
Circle area using pi
Given a circle's radius, compute the circle's area. Use the built-in mathematical constant pi.
9년 초과 전
문제를 풀었습니다
Reverse the vector
Reverse the vector elements. Example: Input x = [1,2,3,4,5,6,7,8,9] Output y = [9,8,7,6,5,4,3,2,1]
9년 초과 전
문제를 풀었습니다
Remove the vowels
Remove all the vowels in the given phrase. Example: Input s1 = 'Jack and Jill went up the hill' Output s2 is 'Jck nd Jll wn...
9년 초과 전
문제를 풀었습니다
Simple equation: Annual salary
Given an hourly wage, compute an annual salary by multiplying the wage times 40 and times 50, because salary = wage x 40 hours/w...
9년 초과 전
문제를 풀었습니다
Sort a list of complex numbers based on far they are from the origin.
Given a list of complex numbers z, return a list zSorted such that the numbers that are farthest from the origin (0+0i) appear f...
9년 초과 전
문제를 풀었습니다
Summing digits
Given n, find the sum of the digits that make up 2^n. Example: Input n = 7 Output b = 11 since 2^7 = 128, and 1 + ...
9년 초과 전
문제를 풀었습니다
Return the 3n+1 sequence for n
A Collatz sequence is the sequence where, for a given number n, the next number in the sequence is either n/2 if the number is e...
9년 초과 전