MATLAB
Spoken Languages:
English
Statistics
RANK
249
of 257,660
REPUTATION
318
CONTRIBUTIONS
5Questions
87Answers
ANSWER ACCEPTANCE
100.0%
VOTES RECEIVED
89
RANK
11,856of 17,753
REPUTATION
25
AVERAGE RATING
5.00
CONTRIBUTIONS
1File
DOWNLOADS
27
ALL TIME DOWNLOADS
209
CONTRIBUTIONS
0 Posts
CONTRIBUTIONS
0Public Channels
AVERAGE RATING
CONTRIBUTIONS
0Highlights
AVERAGE NO. OF LIKES
Content Feed
I try this coding but it's say plot error..what wrong with my coding?
Use fplot to plot symbolic expressions syms t f=exp(t)*sin(3*t); c=0.003; I=c*diff(f); figure; fplot(I); grid; xlabel('...
1 day ago | 2
cell merge and print
y=[45 45 65 65 28 28; 1 1 9 2 4 1; 9 4 7 2 3 1] z=mat2cell(y, [1 1 1], [2 2 2])
2 days ago | 0
Check for incorrect argument data type or missing argument in call to function 'isnan'.
The output of inputdlg is in form of cell array as you can see it your command window (below your editor) Use isaNumber = isna...
2 days ago | 1
hello! how can I create a matrix (size 10X10) with random numbers of 1 and -1?
y=[-1 1]; z=y(randi(2,10,10))
2 days ago | 1
Solved
Merge structs on fields
Merge a bunch of structs into one, containing the field names and corresponding values of all input structs. For duplicate field...
2 days ago
"Double for loop", question
Your data is being overwritten as the for loops runs. For the 1st for loop for i=1:n for j=1:n R(i)=a(j)*b(i);...
2 days ago | 1
replace matrix A with the values of another matrix B
A(:,:,1) = [0 0 1; 0 1 0; 0 1 1]; A(:,:,2) = [1 0 0; 0 0 0; 0 0 0]; A(:,:,3) = [0 1 0; 1 0 1; ...
2 days ago | 2
Mean and Median of Values in a matrix
I am giving you an example for one variable. meanvalue=[]; medianvalue=[]; for i=800:100:lastvalue y=flowrate(flowrate>=...
3 days ago | 0
How to generate a matrix with desired pattern using nested for loops?
n=5; A=zeros(n); for i = 1:n for j = min(i,n-i+1):max(i,n-i+1) A(i,j) = 1; end end A
3 days ago | 1
|accepted
I need to write a code to solve a system of equations with formatted output (fprintf).
A=[1, -3, 2; 2, -4, 3; 3, -5, -4]; B=[-11; -15; 5]; x=inv(A)*B; fprintf('x=%d, y=%d, z=%d.', x(1:3))
4 days ago | 1
Solved
Check Digit - 02
Given a list of ISBN's, check whether they're valid or not. Prev Prob - /www.tatmou.com/matlabcentral/cody/problem...
4 days ago
Find the gradient vector field of f . f (x,y,z)= x^2ye^y/z
syms f(x,y,z) f=x^2*y*exp(y/z) grad=[diff(f,x) diff(f,y) diff(f,z)]
4 days ago | 1
|accepted
Solved
What is the current time in Darwin, Australia?
Traders need to track exchange calendars and trading hours in detail, and account for time zone differences and daylight savings...
5 days ago
Solved
chess position
given the position of a chess piece in algebric notation, convert it into 8 by 8 matrix format. For example, * 'Qd5' >> [3,4]...
5 days ago
Solved
decipher the number 1 - same key for all digits :)
You will be given a input number (eg) x=12345 you have to figure out the dechiper key and match it with given input and deciph...
5 days ago
Solved
Creation of 2D Sinc Surface
This Challenge is to efficiently create the Sombrero function of various sizes, resolutions, and frequencies. <
5 days ago
Problem stataments in Matlab
I'm assuming that the data in Column 1 and Column 2 is char/strings. %T is your table cd=0; %counting $ userd=[]; for i=1:si...
5 days ago | 0
if function works in one table but not in another
Use isequal or strcmp if you are comparing the whole string. Use ismember or array indexes if you want to compare partial stri...
5 days ago | 2
Solved
Scrabble Scores - 10
This problem is very similar to the previous problem. Here, you are provided a letter of an existing word on the board from whic...
7 days ago
Solved
Scrabble Scores - 9
After developing a sophisticated Scrabble scoring routine, it's time to write an optimization routine for single-word scoring. T...
7 days ago
Solved
Propagate the effects of a blockage in a chemical plant
From the perspective of flow, a chemical plant can be described by a collection of _nodes_ and _edges_. _Nodes_ are points where...
8 days ago
How do I automate adding columns together
An example based on what you wrote y = randi(100,513,63); z=[]; for i=1:3:63 %groups of 3 as you mentioned z=[z sum(y(:,...
8 days ago | 1
|accepted
Solved
Exhaust all possible logical vectors
Input a length argument and list all possible logical vectors of that length. My solution is of size 29. Can you find an even s...
9 days ago
Solved
String Logic 11
Examples: 'SUNDAY' --> 6 'MONDAY' --> 6 'TUESDAY' --> 7 'WEDNESDAY' --> 9 'THURSDAY' --> 8 'FRIDAY' --> 5 'SATURDAY' --...
10 days ago
Solved
String Logic 10
例子:“星期天”——> 83“周一”——> 77' --> 84 'WEDNESDAY' --> 87 'THURSDAY' --> 84 'FRIDAY' --> 70 'SATURD...
10 days ago
Solved
Stop a ZigZag scanning N*N Matrix at any diag you want
Suppose that we have a 2-D matrix and we try to obtain a 1-D array in zig-zag order, but not all values of our 2-D matrix e...
10 days ago
FFT WITHOUT Built-in functions
Using the definition given at the end of FFT document %x is your input x=[1 2 3 4]; fft(x) %using for comparison Method 1 %...
10 days ago | 1
Solved
String Logic 16
Examples: 'DIG' --> 'DIG' 'KIMBALL' --> 'ALLKIMB' 'DEAL' --> 'EALD' 'LIMB' --> 'IMBL' 'MADE' --> 'ADEM'
12 days ago
Solved
String Logic 14
Examples: 'DIG' --> 'HRN' 'KIMBALL' --> 'VRZDBXX' 'DEAL' --> 'HJBX' 'LIMB' --> 'XRZD' 'MADE' --> 'ZBHJ' 'CHEF' --> 'FPJL'
12 days ago