Réponse apportée
How to Write Output Figure with Table inside to Excel
"I have an image output with a table on my code" You can directly write this table in excel using xlswrite. A=randi(10,5...

presque 8 ans il y a | 1

Réponse apportée
Logarithmic color scale in 2d histogram
Use ruler.scale to set log axis in colorbar. contourf(randi(1000,25,25)) cx= colorbar(); cx.Ruler.Scale = 'log'; c...

presque 8 ans il y a | 2

Réponse apportée
how to load dat file without header?
Since you have not attached any sample file, I am giving you an example with a attached file. A=importdata('sample.txt'); ...

presque 8 ans il y a | 1

| A accepté

A résolu


Project Euler: Problem 1, Multiples of 3 and 5
If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23...

presque 8 ans il y a

A résolu


Alphabetize by last name
Given a list of names in a cell array, sort the list by the last name. So if list = {'Barney Google','Snuffy Smith','Dagwood ...

presque 8 ans il y a

A résolu


Read a column of numbers and interpolate missing data
Given an input cell array of strings s, pick out the second column and turn it into a row vector of data. Missing data will be i...

presque 8 ans il y a

Réponse apportée
If statement with many logical or.
Write statement inside of the loop for a1 = 0.4 : 0.1 : 1 for b1 = 0.2 : 0.1 : 1 if (a1 == b1 && b1 > 1-a...

presque 8 ans il y a | 1

Réponse apportée
Sorting content of table columns
I am giving an example to explain. clc clear load patients T = table(Gender,Age,Height,Weight,Smoker,Systolic,Dias...

presque 8 ans il y a | 2

| A accepté

Réponse apportée
how to read multiple mat files and and extract data from those
Whenever you wish to load all files, just use dir. F=dir('*.mat') for i =1:length(F) load(F(i).name) end

presque 8 ans il y a | 1

Réponse apportée
How can i plot graphs?
"How can i plot graphs?" Here is the sample program of plotting multiple lines in matlab. clc clear var1=rand(1...

presque 8 ans il y a | 1

| A accepté

Réponse apportée
how can i read large data in loop
F=dir('*.edf') for i=1:length(F) [data1, header] = ReadEDF(F(i).name); %do you usual calculation ...

presque 8 ans il y a | 1

| A accepté

A résolu


Is my wife right?
Regardless of input, output the string 'yes'.

presque 8 ans il y a

A résolu


Sorting
Assume that x is an n-by-2 matrix. The aim is to return the first column of x, but sorted according to the second column. Exa...

presque 8 ans il y a

Question


Am I doing something wrong in cody submission?
I have solved couple of question on cody and cross checked my prog on matlab which showing exactly the same output which the que...

presque 8 ans il y a | 1 réponse | 1

1

réponse

Réponse apportée
How to save output into tiff?
Sample image is attached. file=imread('sample.png'); imwrite(file,'sample2.tiff','tiff');

presque 8 ans il y a | 2

Réponse apportée
how to vectorize for loop in this section
Refer this simple example to get your problem resolved. A = [97 89 84; 95 82 92; 64 80 99;76 77 67;... 88 59 74; 78 66 ...

presque 8 ans il y a | 1

Réponse apportée
Making a simple counter by code to be put in simulink
Refer to these links. This links will definitely going to help you. <http://ctms.engin.umich.edu/CTMS/index.php?aux=Basics_Si...

presque 8 ans il y a | 1

Réponse apportée
Add table to an image
Up to my knowledge, you can not add matlab table over an image. But you can use text command to do the same. Here is an example....

presque 8 ans il y a | 2

Réponse apportée
how can I convert a geospacial sst map from 4km to 6 km or vice versa
clc clear lon=[65:.04:70]; lat=[0:0.04:5]; %on 4km resolution sst_4km=randi(27,126,126); lon1=[65:.06:70]; l...

presque 8 ans il y a | 1

Réponse apportée
saving a matrix from a loop into a structure
I hope this simple example helps you to resolve your problem of saving a matrix in a structure from a loop. clc clear ...

presque 8 ans il y a | 1

Réponse apportée
Why doesn't my graph display a line?
Its because t and N have different dimension. Refer this problem. I have done little change to make it understandable. c...

presque 8 ans il y a | 2

| A accepté

Réponse apportée
Multiple x axis top and bottom and left and right y axis
You can use as many Y axis you want with the help of add axis function available on matlab file exchange. Get <https://in.mathwo...

presque 8 ans il y a | 2

Réponse apportée
set color in contour plot with specified colormap
clc clear contourf(randi(6,5,5)) colormap(jet(5)) colorbar

presque 8 ans il y a | 2

Réponse apportée
Trying to do bisection, new to MATLAB
As your equation negative value at both ends. So bisection can not be possible for your equation. I am giving this example by ta...

presque 8 ans il y a | 2

Réponse apportée
Is it possible to combine every value in the same table?
" I am trying to calculate the total amount of precipitation shown on the radar" Just load the pcp variable and sum up all elem...

presque 8 ans il y a | 2

| A accepté

Réponse apportée
Impulse Response Convolution Plot
t=[-2*pi:2*pi] f=@(x) x.^3; h= 2*f(t)+ 2*f(t-pi) plot(t,h)

presque 8 ans il y a | 2

| A accepté

Réponse apportée
How can I combine 20 2D grayscale images (30*30 each) horizontally side by side from a 3D volumetric grayscale image (30*30*20)?
Use reshape command, A=rand(30,30,20); AA=reshape(A,30,[],1); All 20 images are settled side wise in AA

presque 8 ans il y a | 2

| A accepté

Réponse apportée
How to omit repeated element in matrix
Hope it helps. E=[1 2;1 5;2 3;2 4;2 5;3 4;4 5;4 7;4 9;5 6;6 11;6 12;6 13; 7 8;7 9;9 10;9 14;10 11;12 13;13 14] aa=unique...

presque 8 ans il y a | 1

Réponse apportée
Confusion matrix misclassification problem
To get rid of singeton matrix, use squeeze or purmute. A=randi(10,25,1,20); size(A) ans = 25 1 20 ...

presque 8 ans il y a | 0

| A accepté

Réponse apportée
How do I find the integral of the modulus of a transfer function over all frequencies?
Since you have not provided your equation, I am giving an random example, fun = @(x) exp(x.^2).*log(x).^2; q = integra...

presque 8 ans il y a | 1

Charger plus