Feeds
질문
Drawing a log likelihood of some distribution
Hello, Suppose I have a distribution with this pdf: p*(x==0) + (1-p)*poisspdf(2,x(i)) her log likelihood will be: ...
11년 초과 전 | 답변 수: 0 | 0
0
답변질문
how to use function handle
Hello, I want to write a function code that draw a funcion based on the user input. function plotFunc(f,x_min,x_max) ...
11년 초과 전 | 답변 수: 2 | 0
2
답변질문
Dijkstra's algorithm problem
Hello! I'm trying to build a previous nod vector and I'm handling some problems. not clear, right? :) that's way I'll explai...
11년 초과 전 | 답변 수: 3 | 0
3
답변질문
Creating a frequency table
Hello, suppose I have a vector in legnth of 100 that contains a number between 1-4 how can I make a frequncy vector using th...
11년 초과 전 | 답변 수: 3 | 0
3
답변질문
Gamma CDF and PDF
Let X ~ gamma (60,0.5) and I want to calculate P(X < 5) for example. How can I use gampdf and gamcdf for calculating this? I c...
11년 초과 전 | 답변 수: 1 | 0
1
답변질문
Displaying the size of cell array
I Have a database called DB and when I run DB at the command window I get: DB = Template: {'date' 'name' 'ph...
11년 초과 전 | 답변 수: 1 | 0
1
답변질문
Spliting a date to day, month and year
Hello, Suppose I have a date in this form only : 14/2/1923 or 8/2/1923 (not 14/02/1923 or 08/02/1923) How can I split it ...
11년 초과 전 | 답변 수: 3 | 0
3
답변질문
Reaching a specific data in txt file
Hello, suppose I have the file bbb.txt: date intrest profit loss 24/4/2013 5 232 3232 23/4/2013 6 4...
11년 초과 전 | 답변 수: 1 | 0
1
답변질문
A little help in understanding a function
function DB = DBInit() DB.Records = []; DB.Template = {}; end what's the diffrence between [] and {}?
11년 초과 전 | 답변 수: 1 | 0
1
답변질문
Help with a function in a loop
*For example:* sampledata: hello world hello hello world world for i=1:size(sampleData,1) [x y]=n...
11년 초과 전 | 답변 수: 2 | 0
2
답변질문
Importing txt file using the importdata comand
Hello, *1: * I wrote a function that does some manipulations over a vector strings. Now, I want to apply it on text files...
11년 초과 전 | 답변 수: 0 | 0
0
답변질문
convert a string vector to a vector of numbers
Hello, suppose I have a vector of string [1 2 3 4] and i want to change it to a vector of nmbers to do a numeric caculations,...
11년 초과 전 | 답변 수: 1 | 0
1
답변질문
Return to the start of a loop
Hello, I'm writing a function which returns the sequences of n requested letters in a string. For example, : string =...
11년 초과 전 | 답변 수: 3 | 0
3
답변질문
Sum of letters in matlab
Asumming that I have a string = 'abcd' and i want to sum 'a' and 'b' to be z = 'ab'... i guess a(1)+a(2) won't work... ...
11년 초과 전 | 답변 수: 1 | 0
1
답변질문
printmat function for unknown number of rows
Example: M= rand(5) printmat(M, 'My Matrix', 'ROW1 ROW2 ROW3 ROW4 ROW5', 'FOO BAR BAZ BUZZ FUZZ' ) but...
11년 초과 전 | 답변 수: 1 | 0
1
답변질문
How to draw a density function?
Suppose I have : x = 1-2 frequency 5 probability 1/2 x= 2-4 frequency 3 probability 3/10 x = 4-6 frequency 2 probability...
11년 초과 전 | 답변 수: 2 | 0
2
답변질문
A normalizing constant to a histogram
Hey, I hope that you could help me figure out this problem : http://img13.imageshack.us/img13/9687/problemkp.jpg thank yo...
11년 초과 전 | 답변 수: 1 | 0
1
답변질문
How to change units of Y axis?
I made an histogram (left one) and I want to change the y axis units so it will be like the histogram on the right. http://oi...
11년 초과 전 | 답변 수: 1 | 0
1
답변질문
A problem drawing a graph in matlab
I'm trying to draw a graph of density in matlab and I'm encountering several problems. First, binValues is a function that do...
11년 초과 전 | 답변 수: 1 | 0
1
답변질문
A graph in matlab, needs some guidance
Hey, *First question :* Suppose I have two vectors : x = [1 2 3] and y=[0.5,0.35,0.15] and I want to draw a graph using only ...
11년 초과 전 | 답변 수: 3 | 0
3
답변답변 있음
A graph in matlab, needs some guidance
thank's for the comments! but isn't there any simpler code? it's one of my first exercises in matlab and I don't think we are al...
A graph in matlab, needs some guidance
thank's for the comments! but isn't there any simpler code? it's one of my first exercises in matlab and I don't think we are al...
11년 초과 전 | 0
질문
What is the dffrence between the files?
I'm new in matlab and I want to ask what each symbol means. <http://oi45.tinypic.com/s5v8lt.jpg> <<http://oi45.tinypic.com...
11년 초과 전 | 답변 수: 2 | 0
2
답변질문
Switch/Case and operators
I running this code and and I don't understand why it is writing me that x is less than y... can you help me figure this out? ...
11년 초과 전 | 답변 수: 4 | 0
4
답변답변 있음
How to replace a number/vector by string?
thanks... how do I use the switch and case if I want to sort number of situations if days < 10 of month < 10 etc... switch mo...
How to replace a number/vector by string?
thanks... how do I use the switch and case if I want to sort number of situations if days < 10 of month < 10 etc... switch mo...
11년 초과 전 | 0
질문
How to replace a number/vector by string?
for example: a=[1 1 2000] ---> 1/1/2000 I'm only allowed using num2str but I don't understand how to use it. thank's..
11년 초과 전 | 답변 수: 2 | 0
2
답변질문
Help understanding the erorr in a matlab code
I'm writing a function which recives a matrix of birth and death dates and return the number of days between them. function...
11년 초과 전 | 답변 수: 1 | 0
1
답변질문
A problem in calculating diffrence between two dates
function totalDays=dateDiff(date1,date2) y1=date1(3); y2=date2(3); diff1 = dateDiffSameY(date1,[31 12 y1])+1; diff...
11년 초과 전 | 답변 수: 1 | 0
1
답변질문
how to switch contents of two variables?
hey, I want to write a program that returns the day diffrence between two specific dats. Now,, I want the second date to be ...
11년 초과 전 | 답변 수: 2 | 2
2
답변질문
I don't understand something
Hey! I'm trying to write a program which take two matrices when one is a type of coin(for exmple: 1 cent, 2 cent etc) and fre...
11년 초과 전 | 답변 수: 1 | 0
1
답변질문
new in matlab, first question
hey, i'm trying to take a sample from a raw vector using myRandPerm. i had started in the folowing way: function s=sample(...
11년 초과 전 | 답변 수: 2 | 0