Answered
error using the join function
The corrext syntax is - FinalData = join(All,M4,'Keys',{'ID','Year'}); %or FinalData = join(All,M4,'Keys',["ID","Year"]); ...

3 years ago | 0

Solved


Neural Net: Calculate Perceptron
This challenge is to calculate the Neural Net Perceptron value,P, given X, WH, and WP using ReLU on the hidden layer. This examp...

3 years ago

Solved


Neural Net: Calculate Bias Single Perceptron (AND/NAND/OR/NOR/XOR)
This challenge is to calculate the Neural Net Bias Perceptron vector,P, given X, WH, and WP using ReLU on the hidden layer. Test...

3 years ago

Solved


Neural Nets: Activation functions
Return values of selected Activation function type for value,vector, and matrices. y=Activation(x,id); where id is 1:4 for ReLU...

3 years ago

Solved


Neural Net: Best Index of Prediction array
The final ouput of a neural net application is a Prediction matrix/vector,P, that gives the probability of the input being of a ...

3 years ago

Answered
How do I convert a numerical vector into a comma-delimited string?
(Quite) A simple approach that has not been mentioned yet - n = [12345 6789 10234 3452]; out = strjoin(string(n),",")

3 years ago | 3

Answered
Assertion Failing, even if the output value (or string, in this case) and the assertion is exactly same
The problem is there is an extra space after India, thus the strings are not equal and the assertion fails - s1 = "India 250 & ...

3 years ago | 0

| accepted

Answered
Extract some rows of the matrix with the find command
Use ismember with logical indexing - matrix = [6 6 5 7 6 0 8 6 10 9 6 3 10 6 7 11 6 0 12 6 2 13 6 0]; idx = ismember...

3 years ago | 0

| accepted

Answered
Why does my colour bar not go up to the maximum values in the matrix?
"and I am checking what the maximum values in the matrix that I am plotting are:" No, you are checking the values of A, whereas...

3 years ago | 1

| accepted

Answered
how do I add a second x-axis label below existing one instead of plotting two figures ?
%Minimum working example solution for differently scaled x-axis with similar range of y-values %Adjust/Modify properties as nec...

3 years ago | 2

| accepted

Answered
determine within cell the coordinates (rows/columns) having equal 3 numbers
You don't need to convert the data to cell array to find that - rgb = randi(4,3,3,3,'uint8') %Method 1 [r,c]=find(rgb(:,:,2)...

3 years ago | 2

Answered
how add "$" and "' ' " in array string
T = ["139411.39" "115944.39" "413970.912" "124256.379" "144673.585" "93473.162" "334232.706" ...

3 years ago | 1

Answered
save the RGB numbers of an image inside a cell
%Random data for example rgb = randi(255,100,100,3,'uint8'); %Convert the data to a cell array, by breaking it into sub-arra...

3 years ago | 0

| accepted

Answered
Error using dot A and B must be same size in MATLAB (moment Vectors)
You are not exactly doing what's done in the reference. s = size(r); B = zeros(s,'sym'); for m=1:s(1) for n=1:s(2) ...

3 years ago | 0

| accepted

Solved


Throwing Dice - Will You Be Eaten By The Dragon?
You and a dragon have agreed to let dice rolls determine whether it eats you or not. The dragon will roll a single die, of x si...

3 years ago

Answered
when converting a time into an array I lose the date column
"(i want to use it using uitable and display it in a table)" Convert the timetable to table and use accordingly - tableName =...

3 years ago | 1

Answered
How to import data from an Excel file to an equation in matlab
"but I feel like its possible to just import the columns of the excel to the matlab, is it possible?" Yes, use readmatrix.

3 years ago | 1

Answered
Check if a value exists in a cell array starting from a value whose index is the desired value
I have unsuppressed the output of variable temp to show the path that is followed (as you have demonstrated above) - A={5, 15, ...

3 years ago | 0

| accepted

Answered
Related vector values via cell array
A=(1:10)'; B={15, 12, 0, [11, 7], 9, 0, [1, 20, 21], 18, 7, 0, 16, [13, 14], 17, 4, 6}; m = max([B{:}]); z1 = nested(A,B,2,...

3 years ago | 0

| accepted

Solved


Draw the Greek letter 'α'
Given the dimensions of a matrix nRow and nCol where nCol > nRow, draw the Greek letter 'α' with 1's and 0's. You can consider t...

3 years ago

Solved


String vowel manipulation
Given a string, find all the vowels and shift them to the end of the string in the same order as they are found.

3 years ago

Solved


Make a (better) checkerboard matrix
This problem seeks to expand the task in Cody Problem 4 by allowing for the creation of checkerboard matrices that can be rectan...

3 years ago

Answered
How i can plot a constant function on the same figure with variable function ?
Use hold on to add more curves to the same figure. Check out the documentatino for more info - hold

3 years ago | 3

| accepted

Answered
Is there a way for reducing my code lines in a code for ploting
Store your data in array and use indices to access the data - Es = 200*10^9; % Young's modulus of the solid of the steel(Pa) ...

3 years ago | 1

| accepted

Answered
optimization of resources for organization with limited resources
I have corrected your code and added comments (double %) for reference - % Given data v = [10, 20, 30, 40, 50]; d = [4, 5, 6...

3 years ago | 2

| accepted

Solved


Find the Peak Particle Velocity on a ETL structure
PPV is a vibration parameter that can connect stress to a structure, it is measured in mm/s or mm/s-1. The higher the PPV the mo...

3 years ago

Answered
Conversion of symbolic expression to double without obtaining complex numbers
"Is there any possibility to garantuee that Matlab takes the abs values for the log if I get the log inside my derivative" You ...

3 years ago | 0

Answered
Plot graph didnt showing up
I assume that you are running a script by pressing the run button (or typing the script name in command window). The pause comm...

3 years ago | 0

| accepted

Answered
How to move the colorbar label to top position of the bar?
C = [0 2 4 6; 8 10 12 14; 16 18 20 22]; clims = [4 18]; imagesc(C,clims) e=colorbar; e.Label.String = 'amp'; %Adjust the ...

3 years ago | 1

| accepted

Answered
Wish to use output of the first iteration in a loop as an input in the second iteration of the loop
%Values M1 = 5; Altitude = 28000; gamma = 1.4; Theta = 8; %[Beta] = betacalli...

3 years ago | 0

| accepted

Load more