Beantwortet
calculate the averages of non-squared matrix blocks
A = [1 0 2 0; 0 1 3 0 ; 1 1 0 0 ; 0 2 3 1 ; 3 2 3 0 ; 0 1 1 2 ; 3 1 0 2 ; 0 0 1 0 ; 2 1 ...

mehr als 2 Jahre vor | 0

Beantwortet
how to index the stating position of something?
The code you have requires a few modifications to work. Try this - x1 = [1 0 2 3 8 5 6 7 0 0 0 0 0 2 5 3 0 0 6 4]; out1 = ...

mehr als 2 Jahre vor | 1

Beantwortet
How do I include errorbar on my F1 score plot
Use errorbar - % Given data p = [3, 4, 5, 6, 7, 8, 9, 10, 11, 12]; TPR_PCA = [79.4, 80.25, 83, 90.50, 91.31, 91.34, 91.34, 9...

mehr als 2 Jahre vor | 0

Beantwortet
How do i plot these kind of surfaces?
It shows in the image to take the real part of the functions, but your description says something different. The code below is ...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
Loop to create a matrix with adding a constant value to a matrix
You can either Preallocate a zero array and add elements using ones or repelem via indexing. Obtain the final matrix via repe...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
How to plot multiple time series data on single plot?
Add plots to existing axis legend

mehr als 2 Jahre vor | 0

Beantwortet
Datatips does not work with rectangle
figure() %Draw the rectangle first rectangle('Position',[3 3 3 3],'FaceColor',[1 0 0]); %hold on - to add the plot to the s...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
Assign value 1 to a position in a matrix
Assuming values of x_Pos and y_Pos are from xVec and yVec - xVec = [0:0.1:50]; % in m yVec = [0:0.1:45]; % in m Matrix = f...

mehr als 2 Jahre vor | 1

| akzeptiert

Gelöst


Count the number of folds needed to pack a large sheet
In a certain paper factory, large sheets of paper are being made every day. Before sending the sheets for shipment, they have to...

mehr als 2 Jahre vor

Gelöst


Neural Net: Back Propagation of Quad Output with Bias, ReLU
This challenge is to return the WH_delta and WP_delta, given X, WH, WP, EPY using ReLU on the hidden layer and Softmax on the ou...

mehr als 2 Jahre vor

Gelöst


Neural Net: Back Propagation of Dual Output with Bias
This challenge is to return the WH_delta and WP_delta, given X, WH, WP, EPY using Sigmoid on the hidden layer and Softmax on the...

mehr als 2 Jahre vor

Gelöst


Neural Net: Calculate Bias Quad Output Perceptron (Counter, Mux, Subtraction)
This challenge is to calculate the Neural Net Bias Quad Output Perceptron vector, PY, and Pclass, given X, WH, and WP using ReL...

mehr als 2 Jahre vor

Gelöst


Neural Net: Calculate Bias Dual Output Perceptron (AND/NAND/OR/NOR/XOR/XNOR)
This challenge is to calculate the Neural Net Bias Dual Output Perceptron vector,PY and Pclass, given X, WH, and WP using Sigmoi...

mehr als 2 Jahre vor

Beantwortet
The graph is not displayed
x0 = 100; r=1.02; %Bring the assignment out of loop, as it is not affected by the loop x = x0; %Define indices to loop ove...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
Plot a 2-dimensional matrix with 2 different colormaps for negative and positive values
%Random data for example y = (-7:5)+(-7:5)'; %Get the maximum and minimum values of the array p = max(y,[],'all'); n = min...

mehr als 2 Jahre vor | 1

| akzeptiert

Beantwortet
How do you find a specific row a certain value is at in a matrix?
When you provide a numerical array to find, it gives the indices of all the nonzero values. And as Max_floor_2 is a non-zero sca...

mehr als 2 Jahre vor | 1

| akzeptiert

Beantwortet
Plotting simplenarx_dataset
simplenarx_dataset is a 1x100 cell array, with each cell element containing a numerica scalar. load simplenarx_dataset; data ...

mehr als 2 Jahre vor | 1

Beantwortet
loglog plot, change yticks to non 10^ values. IS there a straight forward way like for xticks
"... but I'm confused as to why the yticks are so much more intricate than the xtick." I suspect it is becase the values to x-t...

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
How to display pi symbol in the output?
You can either use the symbolic math toolbox or print the symbol via the unicode value - nA=3.3;nB=2.25; % nB=3.3;nA=2.25; S...

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
How to replace the variable s with the complex variable jw?
Assuming you are working with symbolic variables, use symbolic substitution - subs

fast 3 Jahre vor | 0

Beantwortet
How can I have automatic marker shapes for multiple curves
"The thing is the number of curves is an input I can vary, that's why I can't simply specify the shape of the markers for each c...

fast 3 Jahre vor | 1

Beantwortet
MATLAB not computing integral of an infinite integral
Convert the symbolic functions to function handles, and use numerical integrals - P_l=50; v=0.1; k=15; Tm=1; T0=300; alph...

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
Is there any way to create 90 degree rose plot?
Adjust the theta limits - %Random data theta = atan2(rand(100000,1)-0.5,2*(rand(100000,1)-0.5)); polarhistogram(theta,25) ...

fast 3 Jahre vor | 1

Beantwortet
Passing array as input to a function
If you perform colon operations with vectors to create regularly-spaced vectors, it will only take the 1st element of each vecto...

fast 3 Jahre vor | 0

Beantwortet
What is Matlab online execution time affected by?
"so the simulations run entrirely on Matlab's cloud." Yes. "I typed system('cat /proc/cpuinfo') in the Matlab online window,...

fast 3 Jahre vor | 1

Beantwortet
Change values of 'x-axis (bar graph) as integers
%Random data x = 0:4e4; y = x.^2-x; plot(x,y) figure plot(x,y) %Get x tick values t = xticks; %Create a string with ...

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
Cant seem understand the error in code
for loops need to be completed with "end". You initiated 2 for loops, but you only closed one. for i=1:size(I,1)-M for j=1...

fast 3 Jahre vor | 0

Beantwortet
combine data into hourly-based data
There's no need of using find in the for loop load('data.mat') for i=1:24 %Comparison was incorrect id=data(:,2)>...

fast 3 Jahre vor | 0

Beantwortet
I don't understand the failed test message
Hi @Nourhan, Cody moderator here As @Torsten mentions, that particular test case checks for some keywords, to see if they ar...

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
Magnifying a Segment of Plot in MATLAB Figure
Check this FEX submission - zoomPlot MathWorks Blog Post about zoomPlot

fast 3 Jahre vor | 0

Mehr laden