Answered
want a rows to split into multiple rows
I don't see why reshape() wouldn't work A = ones(1,90); A = reshape(A,3,30)

4 years ago | 0

Answered
How to keep roi points visible when replotting
Whenever you draw a new image with imshow(), and definitely when you clear the axes, the roi object gets deleted. You'll have t...

4 years ago | 1

| accepted

Question


Guidelines for appropriate moderation?
This question is a bit twofold. I keep seeing "answers" like this: They tend to take one of two forms: Terse, often single-...

4 years ago | 2 answers | 1

2

answers

Answered
Zero out values ​​from a specific row in a matrix
Depends if you want before or after. Since there's no specified mechanism to determine which, I'm assuming they're separate cas...

4 years ago | 0

| accepted

Answered
how to extract a value with a specific character out of an character array
I'm not sure which extra emails should be rejected. I'm going to assume that all other emails get rejected emails = {'someone,...

4 years ago | 0

| accepted

Answered
Extract float from a filename
Well I guess this is one way. There are probably more elegant ways of unpacking the nested cell array and converting to numeric...

4 years ago | 0

| accepted

Answered
How to replace letters with numbers in matrix
Here's one way: m = 'D2F1C2A3B2B1C2A1C2F2D2B3C3A2F1A2F1C1F2A1A1A3F1D1B2B1B2B2D3D1F1F3D2C2D3A1A2'; m2 = replace(m,{'A','B','C',...

4 years ago | 0

Answered
How can I remove the line for nan in my ploting
This is one way mdot = 115; % Source Strength g/s U = 6.82; % Wind speed m/s h = 80; % Stack Height (m) Sh = 20; % Plume Ri...

4 years ago | 0

| accepted

Answered
Save figures in png format
This lists multiple methods to maximize a figure window. The suggestions depend on version and environment, so take note of tha...

4 years ago | 0

Answered
What is the reason while plotting sinc function in mathematical it is cutting at 0 why ? what is the difference
What do you mean "plotting ... in mathematical"? If you're just comparing the MATLAB sinc() function against sin(x)/x or sin(pi...

4 years ago | 0

Answered
How to dynamically create multiple column vectors?
How about something like this? M = 5; % Number or elements in each vector L = 1000; % Number of column vectors N = M+L; a ...

4 years ago | 0

| accepted

Answered
Keep always on top
Similar to Jan's suggestion, you can always do the window management with ... your window management tools. Jan's recommendati...

4 years ago | 1

Answered
Define origin and length of the Strel function
No need for strel(). A = false(7); A(4,4) = true st1 = [1 1 1 0 0 ]; B1 = imdilate(A,st1) st2 = [0 0 1 1 1]; B2 = imdila...

4 years ago | 0

| accepted

Answered
Convert vector loop to matrix loop
You mean like this? c = rand(1,900); x = zeros(100,900); y = x; for k = 1:99 x(k+1,:) = x(k,:) + 0.4*cos(20)/0.226*pi +...

4 years ago | 0

| accepted

Answered
moving mean over 5 cells
Well yeah I imagine it's off by a factor of 1/5 ... because you're dividing the mean by 5.

4 years ago | 0

Answered
How to solve this, why is it giving an error?
It's not really clear what you're intending. What are your integration limits? If I assume that you're integrating over [-1....

4 years ago | 0

Answered
I am getting an error using interp1
Strip out all the multiply-defined points: color_1 = [0.7411, 0, 0.1490]; color_2 = [0.9412, 0.2314, 0.1255]; color_3 = [0.99...

4 years ago | 0

| accepted

Answered
how to get common range between 20 intervals?
Finding a non-empty intersection is easy enough, so I'm going to concentrate on the latter part of the question. I'm sure there...

4 years ago | 1

Answered
How to fill array with value 0 if function returns empty []
I hardly ever use symbolic tools, so I'm sure someone knows a better way. Just paying attention to the output alone, this is on...

4 years ago | 0

| accepted

Answered
Line colour and style
Without data, I'm just going to strip out everything that's irrelevant. This is a routine demonstration of the fact that lege...

4 years ago | 0

Answered
How to Crop and get SSIM Value apply on two images
If it's assumed that there is no scale or rotation transformation, then you can go ahead and try to align the images. load coi...

4 years ago | 0

| accepted

Answered
Look up a value in an incomplete list
How about: keys = ["a", "b", "c", "d"]; vals = [1,2,3,4]; x = ["c", "d", "e"]; [~,y] = ismember(x,keys); y(y==0) = NaN

4 years ago | 0

Answered
How to concatenate 3D matrixes effectively/fast
... why not just concatenate them? ntables=10 nlines=10 ncolumns1=10 ncolumns2=15 ncolumns3=20 ncolumns4=25 ncolumns5=30 ...

4 years ago | 0

| accepted

Answered
using a viridis colormap
Use scatter() instead of plot(). The behavior of viridis() is otherwise the same as the built-in functions like jet(). N = 20;...

4 years ago | 1

Answered
Intercept of each line to y-line
Consider the example: Data=[ 0.11 0.3 0.28 0.6 0.31 0.23 0.78 0.57 1.08 0.43 0.26 0.95 0.84 1.25 0.46 0.55 ...

4 years ago | 0

Answered
Using regexp to extract data
You haven't clearly stated what you want it to match and not match. I'm going to assume that you want it to match "n1" follow...

4 years ago | 0

Answered
How to change color of graph after a certain temperature in GUI while live recording
What exactly does the plotting routine currently look like? Without knowing, I'm going to assume you're just plotting unconne...

4 years ago | 0

Answered
Block sub diagonals matrix
If my interpretation is correct, this should be one method: bksize = [2 2]; % smaller for example A = ones(bksize); B = 11*...

4 years ago | 0

| accepted

Answered
create variables' name in pattern
If your files may vary in size/depth/class, use a loop to read them into a cell array instead. If you create a bunch of named...

4 years ago | 0

| accepted

Answered
How to draw a ball by plot3?
I choose to assume that a request to plot a solid volume with a line/point plotting tool should suggest that the usage of the te...

4 years ago | 1

| accepted

Load more