**Statistics**

RANK**22**

of 287,800

REPUTATION**11,654**

CONTRIBUTIONS

**0** Questions

**3,759** Answers

ANSWER ACCEPTANCE **
0.00%
**

VOTES RECEIVED**1,089**

RANK

of 19,432

REPUTATION**N/A**

AVERAGE RATING**0.00**

CONTRIBUTIONS**0** Files

DOWNLOADS **0**

ALL TIME DOWNLOADS**0**

CONTRIBUTIONS**0 Posts**

CONTRIBUTIONS**0** Public Channels

AVERAGE RATING

CONTRIBUTIONS**0** Highlights

AVERAGE NO. OF LIKES

**Content Feed**

Importing data to 3D array in matlab

Since each file has a different number of x,y, it'll be more convenient to use a cell array: Data = cell(1,nfiles); for ...

2 hours ago | 0

How to save a text file with number and text information?

Put the filenames in cell arrays. Example: lat1=1.2; lat2=3.2; long1=-44; long2=-34; grd='map.grd'; fault='fault.txt'; % fi...

1 day ago | 0

| accepted

quiver plot on an image

"Is there any way to superimpose quiver plot on imshow function?" Yes. % read an image: img = imread('peppers.png'); % imsho...

1 day ago | 0

| accepted

How to display rectangle ROI that was loaded from a file?

You can set the saved rectangles' parent to be a different/new axes. Example: % plot some rectangles: xlim([0 1]) ylim([0 1]...

1 day ago | 0

| accepted

How to get a bar plot with unequal bin intervals?

bin_edges = [0 5 20 100]; % include the last edge (100) bar_heights = [20 10 30]; bar(bin_edges,[bar_heights(:); 0],'histc') %...

1 day ago | 0

| accepted

How to change colors in my legend that is classified into three intervals?

Try storing the line handles returned from the m_plot calls, and then use those line handles in the legend call. That fixed the ...

1 day ago | 0

add element in table

% load stuff from the mat files: d1 = load('matlab_d1.mat','d1').d1; ff = load('matlab_ff.mat','ff').ff; d1 ff Name in ta...

1 day ago | 0

| accepted

Assemble Global Stiffness Matrix

%% INPUTs: A = 2300; % Cross-Sectional Area of member (in mm^2) E = 2*10^5; % Elastic Modulus (i...

1 day ago | 1

| accepted

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 ...

2 days ago | 0

| accepted

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...

2 days ago | 0

| accepted

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...

2 days ago | 0

| accepted

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...

2 days ago | 0

How to extract a matrix of values from cell array of cell arrays of structs

I'm assuming throughout that every struct has the same set of fields. Case 1: All mse{i} are row vectors of the same length (n2...

3 days ago | 1

Is it possible to zip files one directory up with "zip"

Try this: zip('file1',fullfile(pwd(),'..',{'file2','file3'}))

3 days ago | 0

| accepted

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...

3 days ago | 0

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...

3 days ago | 0

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...

4 days ago | 0

| accepted

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...

4 days ago | 0

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...

4 days ago | 0

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. ...

4 days ago | 0

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...

4 days ago | 0

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...

4 days ago | 1

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...

4 days ago | 1

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...

5 days ago | 1

| accepted

Problem in special characters

1. The error, "Unrecognized function or variable 'Newfolder'." means that the variable 'Newfolder' is not defined in the functio...

5 days ago | 0

| accepted

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...

5 days ago | 1

| accepted

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...

5 days ago | 0

| accepted

How to get the sum of each row in a matrix.

% sum over 2nd dimension question_5 = sum(unsumed,2)

5 days ago | 1

Surf from a numerical array

"Currently the axis values just represent the number of data points, so I want to change that to actual values of interest." Sp...

5 days ago | 0

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...

5 days ago | 0

| accepted