답변 있음
Why does my function output a series of answers that I don't want and have tried my best to supress
Because its your function output [T,Q] =osc_2 will give you two output which you specified when you call osc_2 the output w...

6년 초과 전 | 0

| 수락됨

답변 있음
How to draw 3d signal
https://in.mathworks.com/help/matlab/ref/plot3.html figure,plot3(1*ones(1,10),1:10,randn(1,10)) hold on,plot3(2*ones(1,10),1:1...

6년 초과 전 | 0

| 수락됨

답변 있음
How can I implement the following blocks and code in function block ?
This is an example of matlab given in integral help % Without For loop fun = @(x,c) 1./(x.^3-2*x-c); q_f = integral(@(x)fun(x...

6년 초과 전 | 0

답변 있음
How to display only red parts of an image?
You have to get R component which means you have to find out value of R greater than both G and B in RGB data. (May be some thre...

6년 초과 전 | 1

| 수락됨

답변 있음
How do I find the function corresponding to a graph image?
Extract Data https://www.mathworks.com/matlabcentral/answers/234118-extract-data-from-png-file After that you can find mathema...

6년 초과 전 | 0

| 수락됨

답변 있음
What should I write in the command window for this input of the function?
function[stability,lds]=lds_cal(state,hs,fs,time,n_neighbours, plot) if(plot) figure,plot(time,n_neighbours) % or any two ...

6년 초과 전 | 0

| 수락됨

답변 있음
To store plotregression value in a variabe
Suppose the example given below it is matlab example [x,t] = simplefit_dataset; net = feedforwardnet(10); net = train(net,x,...

6년 초과 전 | 1

| 수락됨

문제를 풀었습니다


ZigZag - 05
Given a matrix, print all its elements in the alpha form. For example - a=[16 2 3 13 5 11 10 8 ...

6년 초과 전

답변 있음
How to plot impulse response?
X=conv(y,h,'same');

6년 초과 전 | 0

| 수락됨

답변 있음
Plot matrix with imagesc
Use text scan to read from text file Use text to write text on figure no_of_word_to_read = 3; %no of columns filename = 'C:\U...

6년 초과 전 | 0

| 수락됨

답변 있음
For Loop not plooting with "surf" command
Try this clc Ma = zeros(); Pi = 0; Pinc = 10; Pf = 200; Xi = 0; Xinc = 1; Xf = 180; for P = Pi:Pinc:Pf; for X = Xi:Xin...

6년 초과 전 | 1

| 수락됨

문제를 풀었습니다


Convert a temperature reading from Celsius to an unknown scale
Two of the most famous temperature scales are the Celsius and the Fahrenheit scale. In reality, however, there are so many other...

6년 초과 전

문제를 풀었습니다


Count the number of folds needed to pack a large sheet
In a certain paper factory, large sheets of paper are being made every day. Before sending the sheets for shipment, they have to...

6년 초과 전

문제를 풀었습니다


Sunday bonus
Submit a solution on any Sunday and you will get 10 points. Only for MATLAB fans!

6년 초과 전

문제를 풀었습니다


Sum of series
a(n) = n^2 - (n-1)^2 find the summation of the series upto n i.e. a(1)+a(2)+...+a(n)

6년 초과 전

문제를 풀었습니다


Sky full of stars - 01
Draw a right triangle with asterisks of size n. For example, for n=5 '* ' '** ' '*** ' '**** ' ...

6년 초과 전

문제를 풀었습니다


Sky full of stars - 03
draw the following pattern with asterisks. For example, for n=6 '************' '***** *****' '**** ****' ...

6년 초과 전

문제를 풀었습니다


Find the two-word state names
Given a list of states, remove all the states that have two-word names. If s1 = 'Alabama Montana North Carolina Vermont N...

6년 초과 전

문제를 풀었습니다


Prime factor digits
Consider the following number system. Calculate the prime factorization for each number n, then represent the prime factors in a...

6년 초과 전

문제를 풀었습니다


Find relatively common elements in matrix rows
You want to find all elements that exist in greater than 50% of the rows in the matrix. For example, given A = 1 2 3 5 ...

6년 초과 전

문제를 풀었습니다


Clean the List of Names
Given a list of names in a cell array, remove any duplications that result from different capitalizations of the same string. So...

6년 초과 전

문제를 풀었습니다


Implement a ROT13 cipher
Replace each character in string s1 with the character that is shifted 13 positions from it (wrap back to the beginning if neces...

6년 초과 전

문제를 풀었습니다


Counting Sequence
Given a vector x, find the "counting sequence" y. A counting sequence is formed by "counting" the entries in a given sequence...

6년 초과 전

문제를 풀었습니다


Test for balanced parentheses
Given the input inStr, give the boolean output out indicating whether all the parentheses are balanced. Examples: * If ...

6년 초과 전

문제를 풀었습니다


Scrabble Scores
Given a word, determine its score in <http://en.wikipedia.org/wiki/Scrabble Scrabble>. The input string will always be provi...

6년 초과 전

문제를 풀었습니다


Kaprekar Steps
6174 is the <http://en.wikipedia.org/wiki/6174_%28number%29 Kaprekar constant>. All natural numbers less than 10,000 (except som...

6년 초과 전

문제를 풀었습니다


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

6년 초과 전

문제를 풀었습니다


Find common elements in matrix rows
Given a matrix, find all elements that exist in every row. For example, given A = 1 2 3 5 9 2 5 9 3 2 5 9 ...

6년 초과 전

문제를 풀었습니다


Maximum running product for a string of numbers
Given a string s representing a list of numbers, find the five consecutive numbers that multiply to form the largest number. Spe...

6년 초과 전

문제를 풀었습니다


Function Iterator
Given a handle fh to a function which takes a scalar input and returns a scalar output and an integer n >= 1, return a handle f...

6년 초과 전

더 보기