photo

Cameron

MathWorks

Last seen: Today Actif depuis 2022

Followers: 0   Following: 0

Statistiques

All
  • 3 Month Streak
  • Knowledgeable Level 4
  • Solver
  • First Answer

Afficher les badges

Feeds

Afficher par

Réponse apportée
95% confidence bounds from logistic curve (curve fitter) give different results to plotting via equation in script
The graph you showed indicates the 95% prediction bounds. The coefficients you provided as a, b, and c have an uncertainty with ...

10 mois il y a | 0

| A accepté

Réponse apportée
Moving standard Deviation and Average
Use movmean and movstd.

plus d'un an il y a | 0

Réponse apportée
How to align X and Y axis to middle of plot?
t = 0:5:360; x = cosd(t); y = sind(t); p = plot(x,y); p.Parent.XAxisLocation = "origin"; p.Parent.YAxisLocation ="origin";

plus d'un an il y a | 0

Réponse apportée
Find intersection point between two plotted lines
Looks like a stress-strain curve. Depending on the material, you could adjust the variable I named cutoff to 0.3*ymax or whateve...

plus d'un an il y a | 0

Réponse apportée
Loading .mat file problem
It looks like when the .mat file was saved, the variables weren't saved with their proper names. You could just keep it as it is...

plus d'un an il y a | 0

Réponse apportée
Plot different markers on the same graph based on “if-else” statement (third parameter) in AppDesigner
You should use indexing instead. t = readtable(Grid.xlsx,opts); app.UITable.Data = t; x = app.UITable.Data.Long; y = app.UIT...

plus d'un an il y a | 0

| A accepté

Réponse apportée
How can I create a matrix of size nxn (user input) where all outside numbers are 1, incrementally decreasing by 1 each layer the matrix goes in?
n = 5; mymat = zeros(n); endVal = n; startVal = 1; for a = 1:ceil(n/2) indx = startVal:endVal; mymat(indx,indx) = ...

plus d'un an il y a | 0

| A accepté

Réponse apportée
cla reset stops UIAxesButtonDown from working
cla(ax,'reset') Resets the ButtonDownFcn callback. I haven't tested this out, but can you just use this: myFun = ax.ButtonDown...

plus d'un an il y a | 0

| A accepté

Réponse apportée
appdesigner setting uistyle back to default
removeStyle(app.UITable)

plus d'un an il y a | 0

| A accepté

Réponse apportée
Why am I getting an error message on my code?
Try this instead estPiValues = zeros(numTrials,1);

plus d'un an il y a | 0

Réponse apportée
How can I draw points with 3 column data
You can adjust your plot as needed. data = webread('https://www.mathworks.com/matlabcentral/answers/uploaded_files/1332705/tec...

plus d'un an il y a | 0

Réponse apportée
Replace table elements in more than one row
You should look into how MATLAB does its indexing. You don't have to loop through the array to change a value. Just do it like t...

plus d'un an il y a | 0

| A accepté

Réponse apportée
Random rows in matrix so no element from the first column occur twice in a row
A = randi(100,5,8); A [~,randrow] = sort(rand(size(A,1),1)); RandA = A(randrow,:)

plus d'un an il y a | 0

Réponse apportée
How i can convert a number in table to 6-digit decimal?
Do you mean 6 total digits or 6 digits after the decimal? For 6 total digits, you can do this: T = ([1:10;pi:pi:10*pi])'; MyA...

plus d'un an il y a | 0

| A accepté

Réponse apportée
App Designer: How to add components that are not listed in the library
For these, you need to specify the axis. For example, if you have a UIAxes component, you would do this: %for a sphere sphere(...

plus d'un an il y a | 1

| A accepté

Réponse apportée
Plotting Column X vs Column Y?
scatter(x(:,1),x(:,2))

plus d'un an il y a | 0

| A accepté

Réponse apportée
Adding Matrices into main diagonal of Matrix
Why would your matrix be 10x10 instead of 30x30? This is how I would do it if you haven't already calculated your tmp values ahe...

plus d'un an il y a | 0

Réponse apportée
connecting sinus function with circle through animation
t=0:0.01:2*pi; x=3*cos(t); y=3*sin(t); tiledlayout(2,1) nexttile p1 = plot(t,y); axis square camroll(90) title('t vs. y'...

plus d'un an il y a | 0

| A accepté

Réponse apportée
How do I add to a structure in a for loop?
files = dir('*.mat'); for i=1:length(files) S{i,1}=load(files(i).name,"-mat"); end

plus d'un an il y a | 0

Réponse apportée
How can I plot a second order differential equation with boundary condition using fourth order Runge-Kutta method?
Here is a list of built-in ODE solvers within MATLAB. Choose an ODE Solver - MATLAB & Simulink (mathworks.com)

plus d'un an il y a | 0

Réponse apportée
Help creating a graph
m0_1 = 600; g = 9.81; T = 6500; Isp2 = 290; C1 = Isp2*g; me1 = T/C1; mf1 = 350; TB1 = (m0_1-mf1)/me1; VB1...

plus d'un an il y a | 0

Réponse apportée
Average values with nan value
myArray = nan(8,1); %array of nan values indx = 1:2:7; %index to populate that array myArray(indx,1) = rand(length(indx),1) %...

plus d'un an il y a | 0

Réponse apportée
Why if statement with odd and even number does not work in function and just skipped condition?
I suspect what's happening is that you're passing a vector or array into your mod() function. If all elements of your variable "...

plus d'un an il y a | 0

| A accepté

Réponse apportée
Error with plotting a massive text file data set.
data = readtable('Analysis1.txt'); plot(data.Var1,data.Var2)

plus d'un an il y a | 0

| A accepté

Réponse apportée
gradient of bubble colors in a bubble chart
I'm not sure what you mean by "continuous trend from left to right". Can you post an image of what you're looking for? This was ...

plus d'un an il y a | 0

Réponse apportée
How to tilt the plot on the right to make it like the one on the left?
Use the "View" under the plot handle to update this. [X,Y,Z] = peaks(250); p = surf(X,Y,Z,'EdgeColor','none'); p.Parent.View ...

plus d'un an il y a | 0

Réponse apportée
All my Values not getting stored. Only my Last Value is getting stored
You need to save values of theta_average, so you can index it this way. You go through a while loop then save it when you need t...

plus d'un an il y a | 0

Réponse apportée
How can I change the variable (z) by any other variable such as (w) in the figures?
[X,Y] = meshgrid(1:0.1:10); Z = sin(X) + cos(Y); p = surf(X,Y,Z,'EdgeColor','none'); p = surf(X,Y,Z,'EdgeColor','none'); p.P...

plus d'un an il y a | 0

Réponse apportée
I was using if and Elseif statements. Everytime I input the third option the print for the second option appears.
The way you've written this, your program checks for this first (p1 == 's') so, seeing that you've selected "s" it will always...

plus d'un an il y a | 0

Réponse apportée
Extract upper triangle of matrix (using vector different from diagonal)
If you have the data in a form of X and Y data points, you can do something like this x = randi([220,800],100,1); %100 random x...

plus d'un an il y a | 0

Charger plus