Beantwortet
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)

mehr als 4 Jahre vor | 0

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

mehr als 4 Jahre vor | 1

| akzeptiert

Frage


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

mehr als 4 Jahre vor | 2 Antworten | 1

2

Antworten

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

mehr als 4 Jahre vor | 0

| akzeptiert

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

mehr als 4 Jahre vor | 0

| akzeptiert

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

mehr als 4 Jahre vor | 0

| akzeptiert

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

mehr als 4 Jahre vor | 0

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

mehr als 4 Jahre vor | 0

| akzeptiert

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

mehr als 4 Jahre vor | 0

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

mehr als 4 Jahre vor | 0

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

mehr als 4 Jahre vor | 0

| akzeptiert

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

mehr als 4 Jahre vor | 1

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

mehr als 4 Jahre vor | 0

| akzeptiert

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

mehr als 4 Jahre vor | 0

| akzeptiert

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

mehr als 4 Jahre vor | 0

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

mehr als 4 Jahre vor | 0

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

mehr als 4 Jahre vor | 0

| akzeptiert

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

mehr als 4 Jahre vor | 1

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

mehr als 4 Jahre vor | 0

| akzeptiert

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

mehr als 4 Jahre vor | 0

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

mehr als 4 Jahre vor | 0

| akzeptiert

Beantwortet
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

mehr als 4 Jahre vor | 0

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

mehr als 4 Jahre vor | 0

| akzeptiert

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

mehr als 4 Jahre vor | 1

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

mehr als 4 Jahre vor | 0

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

mehr als 4 Jahre vor | 0

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

mehr als 4 Jahre vor | 0

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

mehr als 4 Jahre vor | 0

| akzeptiert

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

mehr als 4 Jahre vor | 0

| akzeptiert

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

mehr als 4 Jahre vor | 1

| akzeptiert

Mehr laden