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...
6 years 前 | 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...
6 years 前 | 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 years 前 | 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 years 前 | 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...
7 years 前 | 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...
7 years 前 | 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...
7 years 前 | 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...
7 years 前 | 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...
7 years 前 | 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 years 前 | 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 years 前
已解决
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 years 前
已解决
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 years 前
已解决
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 years 前
已解决
Create a row array using double colon operator
Create a row array from 9 to 1, using the double colon operator.
9 years 前
已解决
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 years 前
已解决
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 years 前
已解决
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 years 前
已解决
The Goldbach Conjecture
The <http://en.wikipedia.org/wiki/Goldbach's_conjecture Goldbach conjecture> asserts that every even integer greater than 2 can ...
9 years 前
已解决
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 years 前
已解决
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 years 前
已解决
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 years 前
已解决
Circle area using pi
Given a circle's radius, compute the circle's area. Use the built-in mathematical constant pi.
9 years 前
已解决
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 years 前
已解决
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 years 前
已解决
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 years 前
已解决
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 years 前
已解决
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 years 前
已解决
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 years 前