Réponse apportée
Assemble Global Stiffness Matrix
%% INPUTs: A = 2300; % Cross-Sectional Area of member (in mm^2) E = 2*10^5; % Elastic Modulus (i...

environ 2 ans il y a | 1

| A accepté

Réponse apportée
unable to plot 2 graphs
Maybe something like this: %normal modes of string section 2.25 Stein/Wysession % clear; close all; clc L = 20; %string ...

environ 2 ans il y a | 0

| A accepté

Réponse apportée
My uitable cells do not hold text input?
OK, I see what the problem is now (you were right, it is a problem with the refreshColumnFormat function). This line in refresh...

environ 2 ans il y a | 0

| A accepté

Réponse apportée
Need help with Tooltip display?
Here is a script you can run, along with an xlsx file containing random colors and names. You can run it as-is, and you can als...

environ 2 ans il y a | 0

| A accepté

Réponse apportée
i need the code for the below graph.
I don't have the data, so I can't generate that exact plot, but here's a similar one: x = -25:245; y = (x+25).'.*[0.5 0.45]-75...

environ 2 ans il y a | 0

Réponse apportée
Is it possible to zip files one directory up with "zip"
Try this: zip('file1',fullfile(pwd(),'..',{'file2','file3'}))

environ 2 ans il y a | 0

| A accepté

Réponse apportée
How to stitch together subsets of data from acceleration time histories?
One thing you have to consider is what to do if a peak is within 2 seconds of another peak, so that the two peaks' 3-second-long...

environ 2 ans il y a | 0

Réponse apportée
Replace Before A Specific Character
% calendarDuration array d = calendarDuration(21:24,2,28,10,6,27.34).' % string array dStr = string(d) % replace the years i...

environ 2 ans il y a | 0

Réponse apportée
insert datetime in array
I assume the array is sorted and needs to remain sorted after inserting the new element. One easy way is to concatenate the new...

environ 2 ans il y a | 0

| A accepté

Réponse apportée
change the colors of legent in 2D-plot
In your plot calls, use the LineSpec argument (see this) or 'Color',c input argument pair (see this). Examples: figure hold o...

environ 2 ans il y a | 0

Réponse apportée
change the color of the second Y-axis
yyaxis('left') plot(1:10); yyaxis('right') plot(10:-1:1) ax = gca(); % the current axes is the right axes at this p...

environ 2 ans il y a | 0

Réponse apportée
Plot a point in a GUI with mouse click
Apparently plot changes the axes' ZLim to [-1 1], which you can check by displaying the ZLim before and after the first click. ...

environ 2 ans il y a | 0

| A accepté

Réponse apportée
How can I add query points between two adjacent points of sampled data and perform interpolation?
Calculate the query points exactly as I showed in my answer to your other question https://www.mathworks.com/matlabcentral/answ...

environ 2 ans il y a | 0

Réponse apportée
How can i plot a multiple EEG signal channels ?
https://www.mathworks.com/help/matlab/ref/stackedplot.html Example: fs = 500; tmax = 1; nch = 21; nt = fs*tmax; t = (0:n...

environ 2 ans il y a | 3

| A accepté

Réponse apportée
How would I import multiple data sets with the same variables
"put them into their own variables" It's better to leave them in the tables. Rather than creating, say, 72 (= 9 variables per t...

environ 2 ans il y a | 1

Réponse apportée
Defining and calling functions in MATLAB
Refer to the following documentation page for a description and examples of how to define and call a function: <https://www.m...

environ 2 ans il y a | 1

| A accepté

Réponse apportée
Problem in special characters
1. The error, "Unrecognized function or variable 'Newfolder'." means that the variable 'Newfolder' is not defined in the functio...

environ 2 ans il y a | 0

| A accepté

Réponse apportée
Processing cell arrays as a batch instead of one by one
Perhaps this: fprintf(fid, '%f,%f,%f,%f\n', iniclu{i,:}); Running example: % example data (not sure whether this is similar t...

environ 2 ans il y a | 1

| A accepté

Réponse apportée
Running compiled AppDesigner app. Error finding getRunningApp
Here's some wild speculation: getRunningApp is only used when the .mlapp is a singleton app (i.e., an app that allows only one i...

environ 2 ans il y a | 0

| A accepté

Réponse apportée
How to get the sum of each row in a matrix.
% sum over 2nd dimension question_5 = sum(unsumed,2)

environ 2 ans il y a | 1

| A accepté

Réponse apportée
Selecting a UIAxes from a drop down box and assigning it to ax to be called by other funtions
Seems like you mean this: ax=app.AxisSelectDropDown.Value; ax=app.(ax); b=ax.Children % b(1) is last object added to uiaxe...

environ 2 ans il y a | 0

| A accepté

Réponse apportée
fprintf function writes irrelevant data into my file
fprintf operates column-wise when given an array as input. So for matrix tmp, fprintf prints tmp(1,1) then tmp(2,1), ..., tmp(en...

environ 2 ans il y a | 1

| A accepté

Réponse apportée
Surf from a numerical array
Yes. You can use the xlim and ylim functions to set the axes limits to the actual region of interest. Example: % some matrix ...

environ 2 ans il y a | 0

| A accepté

Réponse apportée
Create a boxchart with half-boxes
As you may have realized already, there's no ordering of overlapping red, blue, and two white boxcharts that will give you the l...

environ 2 ans il y a | 0

| A accepté

Réponse apportée
How do I use for loop to graph this
hold on x = 0:0.025:1; y = flip(x); for n=1:numel(x) plot([x(n),0],[0,y(n)],'k') end plot([1,0,0,1,1],[0,0,1,1,0],'g')...

environ 2 ans il y a | 0

| A accepté

Réponse apportée
Extracting tables within a cell.
"I would want to have space of column between each files data" See my additions at the end of the loop below for how you can do...

environ 2 ans il y a | 0

| A accepté

Réponse apportée
Program not printing to a text file properly
At first you make StudentID and Score column vectors StudentID = read(:,1); Score = read(:,2); and later you overwrite those ...

environ 2 ans il y a | 0

| A accepté

Réponse apportée
Why don't getframe RGB codes agree with plotted polyshape RGB codes?
They don't agree because of the transparency of the polyshape. Default FaceAlpha=0.35: figure h=plot(nsidedpoly(4)); % defaul...

environ 2 ans il y a | 1

| A accepté

Réponse apportée
How can I add query points between two adjacent points of sampled data?
x = [1;3;4;6;10] n = 4; % number of points to insert in each interval N = numel(x); q = linspace(1,N,(n+1)*(N-1)+1); Xq = in...

environ 2 ans il y a | 1

| A accepté

Réponse apportée
Why am I getting this error: Incorrect number or types of inputs or outputs for function piecewise.?
piecewise is for symbolic variables and expressions, which you are not using here. You can use logical indexing to define ID. S...

environ 2 ans il y a | 1

| A accepté

Charger plus